de.novanic.eventservice.client.event.command.schedule
Class GWTCommandScheduler

java.lang.Object
  extended by de.novanic.eventservice.client.event.command.schedule.GWTCommandScheduler
All Implemented Interfaces:
ClientCommandScheduler

public class GWTCommandScheduler
extends java.lang.Object
implements ClientCommandScheduler

The ClientCommandScheduler can schedule the execution of ClientCommand instances for a specified time/delay. GWTCommandScheduler is a implementation of ClientCommandScheduler for GWT.

Author:
sstrohschein
Date: 04.04.2009
Time: 22:25:02

Constructor Summary
GWTCommandScheduler()
           
 
Method Summary
 void schedule(ClientCommand<?> aCommand)
          Creates a new thread for the execution of the ClientCommand.
 void schedule(ClientCommand<?> aCommand, int aDelay)
          Creates a new thread for the execution of the ClientCommand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GWTCommandScheduler

public GWTCommandScheduler()
Method Detail

schedule

public void schedule(ClientCommand<?> aCommand)
Creates a new thread for the execution of the ClientCommand.

Specified by:
schedule in interface ClientCommandScheduler
Parameters:
aCommand - ClientCommand to schedule

schedule

public void schedule(ClientCommand<?> aCommand,
                     int aDelay)
Creates a new thread for the execution of the ClientCommand. The execution is started after the specified delay.

Specified by:
schedule in interface ClientCommandScheduler
Parameters:
aCommand - ClientCommand to schedule
aDelay - delay in milliseconds