|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ConnectionPayload
- the type of payload given at connectionMessagePayload
- the type of payload for each messagepublic interface DataSourceTypeAdapter<ConnectionPayload,MessagePayload>
Matches and fills a cache with the data from connection and message payloads. This optional class helps the writer of a datasource to manage the type matching and conversions.
Method Summary | |
---|---|
java.lang.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. |
Method Detail |
---|
int match(ValueCache<?> cache, ConnectionPayload connection)
cache
- the cache where data will need to be writtenconnection
- the connection information
java.lang.Object 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 information
boolean updateCache(ValueCache cache, ConnectionPayload connection, MessagePayload message)
cache
- cache to be updatedconnection
- the connection informationmessage
- the payload of each message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |