public SingletonTask(ScheduledExecutorService ses,Runnable task){
  super();
  this.task=task;
  this.ses=ses;
}

public SingletonTask ( ScheduledExecutorService ses , Runnable task ) { super ( ) ; this . task = task ; this . ses = ses ; }
construct a new singletontask for the given runnable . the context is used to manage the state of the task execution and can be shared by more than one instance of the runnable .
