|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sasl.common.schedule.ScheduledExecutorServiceAdapter
public class ScheduledExecutorServiceAdapter
Adapter class which delegates calls to
IScheduleService
to
an instance of ScheduledExecutorService
(the adapted class).
Constructor Summary | |
---|---|
ScheduledExecutorServiceAdapter()
|
Method Summary | ||
---|---|---|
ScheduledExecutorService |
getScheduledExecutorService()
Returns the ScheduledExecutorService which is adapted by this object. |
|
|
schedule(Callable<V> callable,
long millis)
Tries to schedule the callable at now + millis for execution. |
|
void |
setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Sets the ScheduledExecutorService which is adapted by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduledExecutorServiceAdapter()
Method Detail |
---|
public ScheduledExecutorService getScheduledExecutorService()
public void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService
- non null
IllegalArgumentException
- if scheduledExecutorService is nullpublic <V> ScheduledFuture<V> schedule(Callable<V> callable, long millis) throws IllegalArgumentException
IScheduleService
schedule
in interface IScheduleService
callable
- non nullmillis
- integer value greater or equal 0.
IllegalArgumentException
- if callable is null or millis lesser than 0.IScheduleService.schedule(java.util.concurrent.Callable,
long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |