ConnectionPayload - the type of payload given at connectionMessagePayload - the type of payload for each messagepublic interface DataSourceTypeAdapter<ConnectionPayload,MessagePayload>
| Modifier and Type | Method and Description |
|---|---|
Object |
getSubscriptionParameter(ValueCache<?> cache,
ConnectionPayload connection)
The parameters required to open a monitor for the channel.
|
int |
match(ValueCache<?> cache,
ConnectionPayload connection)
Determines whether the converter can take values from the channel
described by the connection payload and transform them in a
type required by the cache.
|
boolean |
updateCache(ValueCache<?> cache,
ConnectionPayload connection,
MessagePayload message)
Takes the information in the message and updates the cache.
|
int match(ValueCache<?> cache, ConnectionPayload connection)
cache - the cache where data will need to be writtenconnection - the connection informationObject getSubscriptionParameter(ValueCache<?> cache, ConnectionPayload connection)
For channels multiplexed on a single subscription, this method is never used.
cache - the cache where data will need to be writtenconnection - the connection informationboolean updateCache(ValueCache<?> cache, ConnectionPayload connection, MessagePayload message)
cache - cache to be updatedconnection - the connection informationmessage - the payload of each messageCopyright © 2015. All rights reserved.