|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.novanic.eventservice.client.event.DefaultRemoteEventConnector
public abstract class DefaultRemoteEventConnector
RemoteEventConnector should handle the connections between client- and the server side.
| Constructor Summary | |
|---|---|
DefaultRemoteEventConnector()
|
|
| Method Summary | |
|---|---|
void |
activate(Domain aDomain,
EventFilter anEventFilter,
EventNotification anEventNotification,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Activates the connector for the domain. |
protected abstract void |
activateStart(Domain aDomain,
EventFilter anEventFilter,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Activates the connector for the domain. |
void |
deactivate()
Deactivates the connector for all domains (no events can be got from the domains). |
boolean |
isActive()
Checks if the connector is active (listening). |
protected abstract void |
listen(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<DomainEvent>> aCallback)
Starts listening for events (listen call to the server side). |
void |
registerUnlistenEvent(UnlistenEventListener.Scope anUnlistenScope,
UnlistenEvent anUnlistenEvent,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
Registers an UnlistenEvent to the server side which
will be triggered when a timeout or unlisten/deactivation for a domain occurs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.novanic.eventservice.client.event.RemoteEventConnector |
|---|
deactivate, deactivate, deregisterEventFilter, init, registerEventFilter |
| Constructor Detail |
|---|
public DefaultRemoteEventConnector()
| Method Detail |
|---|
public void deactivate()
deactivate in interface RemoteEventConnectorpublic boolean isActive()
isActive in interface RemoteEventConnector
public void activate(Domain aDomain,
EventFilter anEventFilter,
EventNotification anEventNotification,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
EventFilter
to filter events on the server side is optional.
activate in interface RemoteEventConnectoraDomain - domain to activateanEventFilter - EventFilter to filter the events on the server side (optional)anEventNotification - supports the notification about incoming eventsaCallback - callback
public void registerUnlistenEvent(UnlistenEventListener.Scope anUnlistenScope,
UnlistenEvent anUnlistenEvent,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
UnlistenEvent to the server side which
will be triggered when a timeout or unlisten/deactivation for a domain occurs.
The UnlistenEvent will also be hold at the client side to trigger on local timeouts (for e.g. connection errors).
registerUnlistenEvent in interface RemoteEventConnectoranUnlistenScope - scope of the unlisten events to receiveanUnlistenEvent - UnlistenEvent which can contain custom dataaCallback - callbackprotected abstract void listen(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<DomainEvent>> aCallback)
aCallback - callback
protected abstract void activateStart(Domain aDomain,
EventFilter anEventFilter,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> aCallback)
EventFilter
to filter events on the server side is optional.
aDomain - domain to activateanEventFilter - EventFilter to filter the events on the server side (optional)aCallback - callback
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||