Class ContinuousQueryCache.ServiceListener
- java.lang.Object
-
- com.tangosol.net.cache.ContinuousQueryCache.ServiceListener
-
- All Implemented Interfaces:
MemberListener,EventListener
- Enclosing class:
- ContinuousQueryCache<K,V_BACK,V_FRONT>
protected class ContinuousQueryCache.ServiceListener extends Object implements MemberListener
MemberListenerfor the underlying cache's service.The primary goal of that listener is invalidation of the
ContinuousQueryCachein case of the corresponding CacheService [automatic] restart.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmemberJoined(MemberEvent evt)Invoked when a Member has joined the service.voidmemberLeaving(MemberEvent evt)Invoked when a Member is leaving the service.voidmemberLeft(MemberEvent evt)Invoked when a Member has left the service.StringtoString()Produce a human-readable description of this object.
-
-
-
Method Detail
-
memberJoined
public void memberJoined(MemberEvent evt)
Description copied from interface:MemberListenerInvoked when a Member has joined the service.Note: this event could be called during the service restart on the local node (
evt.isLocal()) in which case the listener's code should not attempt to use any clustered cache or service functionality.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.
- Specified by:
memberJoinedin interfaceMemberListener- Parameters:
evt- the MemberEvent.MEMBER_JOINED event
-
memberLeaving
public void memberLeaving(MemberEvent evt)
Description copied from interface:MemberListenerInvoked when a Member is leaving the service.- Specified by:
memberLeavingin interfaceMemberListener- Parameters:
evt- the MemberEvent.MEMBER_LEAVING event
-
memberLeft
public void memberLeft(MemberEvent evt)
Description copied from interface:MemberListenerInvoked when a Member has left the service.Note: this event could be called during the service restart on the local node (
evt.isLocal()) in which case the listener's code should not attempt to use any clustered cache or service functionality.- Specified by:
memberLeftin interfaceMemberListener- Parameters:
evt- the MemberEvent.MEMBER_LEFT event
-
-