public Executor createQueue(int poolsize,String prefix){
  final Executor r=new Executor(poolsize,prefix);
  r.setContinueExistingPeriodicTasksAfterShutdownPolicy(false);
  r.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);
  queues.add(r);
  return r;
}

public Executor createQueue ( int poolsize , String prefix ) { final Executor r = new Executor ( poolsize , prefix ) ; r . setContinueExistingPeriodicTasksAfterShutdownPolicy ( false ) ; r . setExecuteExistingDelayedTasksAfterShutdownPolicy ( false ) ; queues . add ( r ) ; return r ; }
create a new executor queue .
