Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net
Interface MemberListener

All Superinterfaces:
  java.util.EventListener

All Known Implementing Classes:
  ContinuousQueryCache.ServiceListener, NearCache.BackServiceListener, WorkManager.ServiceListener

    public interface MemberListener

extends java.util.EventListener

The listener interface for receiving MemberEvents.

Author:
  cp 2002.12.12
See Also:
  `Service`, `MemberEvent`

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.

Method Detail

### memberJoined

    void memberJoined(MemberEvent evt)

  Invoked 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.

  Parameters:
    `evt` - the MemberEvent.MEMBER_JOINED event

### memberLeaving

    void memberLeaving(MemberEvent evt)

  Invoked when a Member is leaving the service.

  Parameters:
    `evt` - the MemberEvent.MEMBER_LEAVING event

### memberLeft

    void memberLeft(MemberEvent evt)

  Invoked 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.

  Parameters:
    `evt` - the MemberEvent.MEMBER_LEFT event

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.