|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDiscoveryCacheEventHandler
The Discovery cache event handler interface.
An event handler is a sink for events generated by a discovery cache. Discovery
events contain:
- An event type field (an integer value)
- An event data object (a type specific object).
See DiscoveryCacheEvents
for a desciption of the various events and their associated
data structures.
Method Summary | |
---|---|
void |
onEvent(IDiscoveryCache cache,
int type,
Object data)
The event handler method. |
Method Detail |
---|
void onEvent(IDiscoveryCache cache, int type, Object data)
It is illegal to perform any operation on the cache from within the event
handler. An IllegalStateException
is thrown if the user attempts
to perform any operation on the cache from within the event handler.
cache
- The discovery cache that dispatched the event.type
- The event type.data
- The type specific event event data. See DiscoveryCacheEvents
for which data structures are dispatched with each event type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |