Class CDORemoteSessionManager.EventAdapter
java.lang.Object
org.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
org.eclipse.emf.cdo.session.remote.CDORemoteSessionManager.EventAdapter
- All Implemented Interfaces:
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 of
remote session
related events.- Since:
- 3.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.IListener
org.eclipse.net4j.util.event.IListener.NotifierAware
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
notifyOtherEvent
(org.eclipse.net4j.util.event.IEvent event) protected final void
onAdded
(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element) protected void
onClosed
(CDORemoteSession remoteSession) Called if the local session issubscribed
and a remote session to the same repository as the local session was closed.protected void
onLocalSubscriptionChanged
(boolean subscribed) Called if thesubscription mode
of the local session changed.protected void
onMessageReceived
(CDORemoteSession remoteSession, CDORemoteSessionMessage message) Called if the local session issubscribed
and a remote session hassent
custom data to the local session.protected void
onOpened
(CDORemoteSession remoteSession) Called if the local session issubscribed
and a new remote session was opened to the same repository as the local session.protected final void
onRemoved
(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element) protected void
onSubscribed
(CDORemoteSession remoteSession) Called if the local session issubscribed
and a remote sessionsubscribed
to the same repository as the local session.protected void
onUnsubscribed
(CDORemoteSession remoteSession) Called if the local session issubscribed
and a remote sessionunsubscribed
from the same repository as the local session.Methods inherited from class org.eclipse.net4j.util.container.ContainerEventAdapter
isWaitForActive, notifyContainerEvent, notifyEvent, notifyLifecycleEvent, onAboutToActivate, onAboutToDeactivate, onActivated, onDeactivated
-
Constructor Details
-
EventAdapter
public EventAdapter()
-
-
Method Details
-
onLocalSubscriptionChanged
protected void onLocalSubscriptionChanged(boolean subscribed) Called if thesubscription mode
of the local session changed. -
onOpened
Called if the local session issubscribed
and a new remote session was opened to the same repository as the local session. -
onClosed
Called if the local session issubscribed
and a remote session to the same repository as the local session was closed. -
onSubscribed
Called if the local session issubscribed
and a remote sessionsubscribed
to the same repository as the local session. -
onUnsubscribed
Called if the local session issubscribed
and a remote sessionunsubscribed
from the same repository as the local session. -
onMessageReceived
Called if the local session issubscribed
and a remote session hassent
custom data to the local session. -
notifyOtherEvent
protected void notifyOtherEvent(org.eclipse.net4j.util.event.IEvent event) - Overrides:
notifyOtherEvent
in classorg.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
-
onAdded
protected final void onAdded(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element) - Overrides:
onAdded
in classorg.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
-
onRemoved
protected final void onRemoved(org.eclipse.net4j.util.container.IContainer<CDORemoteSession> container, CDORemoteSession element) - Overrides:
onRemoved
in classorg.eclipse.net4j.util.container.ContainerEventAdapter<CDORemoteSession>
-