de.novanic.eventservice.client.command
Class RemoteListenCommand

java.lang.Object
  extended by de.novanic.eventservice.client.command.DefaultRemoteCommand<java.util.List<DomainEvent>>
      extended by de.novanic.eventservice.client.command.RemoteListenCommand
All Implemented Interfaces:
RemoteCommand<java.util.List<DomainEvent>>

public final class RemoteListenCommand
extends DefaultRemoteCommand<java.util.List<DomainEvent>>

The RemoteListenCommand calls the listen method of EventService (EventService.listen()). This command is used by the EventService itself, to loop the listen cycle. The EventService calls the listen method everytime again on callback of the listen method, as long as the user is registered for a domain.

Author:
sstrohschein
Date: 06.06.2008
Time: 22:39:27

Constructor Summary
RemoteListenCommand()
           
 
Method Summary
 void execute(EventServiceAsync anEventService)
          When the RemoteListenCommand is executed, the listen method of the EventService is called.
 
Methods inherited from class de.novanic.eventservice.client.command.DefaultRemoteCommand
getCallback, init, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteListenCommand

public RemoteListenCommand()
Method Detail

execute

public void execute(EventServiceAsync anEventService)
When the RemoteListenCommand is executed, the listen method of the EventService is called.

Parameters:
anEventService - EventService (EventService)
See Also:
EventService.listen()