public class DeactivationCommand extends ServerCallCommand<Void>
Constructor and Description |
---|
DeactivationCommand(RemoteEventConnector aRemoteEventConnector,
Domain aDomain,
AsyncCallback<Void> aAsyncCallback)
Creates a DeactivationCommand to deactivate the event listening of the client for a specified domain.
|
DeactivationCommand(RemoteEventConnector aRemoteEventConnector,
Set<Domain> aDomains,
AsyncCallback<Void> aAsyncCallback)
Creates a DeactivationCommand to deactivate the event listening of the client for a set of domains.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Deactivates the event listening of the client completely or for a specified domain/context.
|
getCommandCallback, getRemoteEventConnector
public DeactivationCommand(RemoteEventConnector aRemoteEventConnector, Domain aDomain, AsyncCallback<Void> aAsyncCallback)
aRemoteEventConnector
- RemoteEventConnector
aDomain
- domain which should be deactivated for event listeningaAsyncCallback
- callback for the commandpublic DeactivationCommand(RemoteEventConnector aRemoteEventConnector, Set<Domain> aDomains, AsyncCallback<Void> aAsyncCallback)
DeactivationCommand(de.novanic.eventservice.client.connection.strategy.connector.RemoteEventConnector , de.novanic.eventservice.client.event.domain.Domain, com.google.gwt.user.client.rpc.AsyncCallback)
when more than one domain should be deactivated, to reduce server calls.aRemoteEventConnector
- RemoteEventConnector
aDomains
- domains which should be deactivated for event listeningaAsyncCallback
- callback for the commandpublic void execute()
DeactivationCommand(de.novanic.eventservice.client.connection.strategy.connector.RemoteEventConnector , de.novanic.eventservice.client.event.domain.Domain, com.google.gwt.user.client.rpc.AsyncCallback)
,
DeactivationCommand(de.novanic.eventservice.client.connection.strategy.connector.RemoteEventConnector , java.util.Set, com.google.gwt.user.client.rpc.AsyncCallback)
Copyright © 2012. All Rights Reserved.