|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.cache.ContinuousQueryCache.ServiceListener
protected class ContinuousQueryCache.ServiceListener
MemberListener for the underlying cache's service. <p/> The primary goal of that listener is invalidation of the ContinousQueryCache in case of the corresponding CacheService [automatic] restart.
Constructor Summary | |
---|---|
protected |
ContinuousQueryCache.ServiceListener() |
Method Summary | |
---|---|
void |
memberJoined(MemberEvent evt) Invoked when a Member has joined the service. |
void |
memberLeaving(MemberEvent evt) Invoked when a Member is leaving the service. |
void |
memberLeft(MemberEvent evt) Invoked when a Member has left the service. |
String |
toString() Produce a human-readable description of this object. |
Constructor Detail |
---|
protected ContinuousQueryCache.ServiceListener()
Method Detail |
---|
public void memberJoined(MemberEvent evt)
evt.isLocal()
) in which case the listener's code should not attempt to use any clustered cache or service functionality. <p/> The most critical situation arises when a number of threads are waiting for a local service restart, being blocked by a Service object synchronization monitor. Since the Joined event should be fired only once, it is called on an event dispatcher thread while holding a synchronization monitor. An attempt to use other clustered service functionality during this local event notification may result in a deadlock.memberJoined
in interface MemberListener
evt
- the MemberEvent.MEMBER_JOINED eventpublic void memberLeaving(MemberEvent evt)
memberLeaving
in interface MemberListener
evt
- the MemberEvent.MEMBER_LEAVING eventpublic void memberLeft(MemberEvent evt)
evt.isLocal()
) in which case the listener's code should not attempt to use any clustered cache or service functionality.memberLeft
in interface MemberListener
evt
- the MemberEvent.MEMBER_LEFT eventpublic String toString()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |