Oracle Coherence for C++ API
Release 3.6.1.0

E18813-01

MemberListener Class Reference

#include <coherence/net/MemberListener.hpp>

Inherits EventListener.

List of all members.


Detailed Description

The listener interface for receiving MemberEvents.
Author:
jh 2007.12.20
See also:
MemberEvent

Service


Public Types

typedef spec::Handle  Handle
  MemberListener Handle definition.
typedef spec::View  View
  MemberListener View definition.
typedef spec::Holder  Holder
  MemberListener Holder definition.

Public Member Functions

virtual void  memberJoined (MemberEvent::View vEvt)=0
  Invoked when a Member has joined the service.
virtual void  memberLeaving (MemberEvent::View vEvt)=0
  Invoked when a Member is leaving the service.
virtual void  memberLeft (MemberEvent::View vEvt)=0
  Invoked when a Member has left the service.

Member Function Documentation

virtual void memberJoined ( MemberEvent::View  vEvt  )  [pure virtual]

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:
vEvt  the MemberEvent::MEMBER_JOINED event

virtual void memberLeaving ( MemberEvent::View  vEvt  )  [pure virtual]

Invoked when a Member is leaving the service.

Parameters:
vEvt  the MemberEvent::MEMBER_LEAVING event

virtual void memberLeft ( MemberEvent::View  vEvt  )  [pure virtual]

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:
vEvt  the MemberEvent::MEMBER_JOINED event

The documentation for this class was generated from the following file:
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.