Class CDORemoteSessionManager.EventAdapter
- java.lang.Object
- 
- org.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
- 
- org.eclipse.emf.cdo.session.remote.CDORemoteSessionManager.EventAdapter
 
 
- 
- All Implemented Interfaces:
- java.util.EventListener,- org.eclipse.net4j.util.event.IListener
 - Enclosing interface:
- CDORemoteSessionManager
 
 public static class CDORemoteSessionManager.EventAdapter extends org.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession> A default adapter for all kinds ofremote sessionrelated events.- Since:
- 3.0
- Author:
- Eike Stepper
 
- 
- 
Constructor SummaryConstructors Constructor Description EventAdapter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidnotifyOtherEvent(org.eclipse.net4j.util.event.IEvent event)protected voidonAdded(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element)protected voidonClosed(CDORemoteSession remoteSession)Called if the local session issubscribedand a remote session to the same repository as the local session was closed.protected voidonLocalSubscriptionChanged(boolean subscribed)Called if thesubscription modeof the local session changed.protected voidonMessageReceived(CDORemoteSession remoteSession, CDORemoteSessionMessage message)Called if the local session issubscribedand a remote session hassentcustom data to the local session.protected voidonOpened(CDORemoteSession remoteSession)Called if the local session issubscribedand a new remote session was opened to the same repository as the local session.protected voidonRemoved(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element)protected voidonSubscribed(CDORemoteSession remoteSession)Called if the local session issubscribedand a remote sessionsubscribedto the same repository as the local session.protected voidonUnsubscribed(CDORemoteSession remoteSession)Called if the local session issubscribedand a remote sessionunsubscribedfrom the same repository as the local session.
 
- 
- 
- 
Method Detail- 
onLocalSubscriptionChangedprotected void onLocalSubscriptionChanged(boolean subscribed) Called if thesubscription modeof the local session changed.
 - 
onOpenedprotected void onOpened(CDORemoteSession remoteSession) Called if the local session issubscribedand a new remote session was opened to the same repository as the local session.
 - 
onClosedprotected void onClosed(CDORemoteSession remoteSession) Called if the local session issubscribedand a remote session to the same repository as the local session was closed.
 - 
onSubscribedprotected void onSubscribed(CDORemoteSession remoteSession) Called if the local session issubscribedand a remote sessionsubscribedto the same repository as the local session.
 - 
onUnsubscribedprotected void onUnsubscribed(CDORemoteSession remoteSession) Called if the local session issubscribedand a remote sessionunsubscribedfrom the same repository as the local session.
 - 
onMessageReceivedprotected void onMessageReceived(CDORemoteSession remoteSession, CDORemoteSessionMessage message) Called if the local session issubscribedand a remote session hassentcustom data to the local session.
 - 
notifyOtherEventprotected void notifyOtherEvent(org.eclipse.net4j.util.event.IEvent event) - Overrides:
- notifyOtherEventin class- org.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
 
 - 
onAddedprotected final void onAdded(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element) - Overrides:
- onAddedin class- org.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
 
 - 
onRemovedprotected final void onRemoved(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element) - Overrides:
- onRemovedin class- org.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
 
 
- 
 
-