net.sf.sasl.common.schedule
Interface IScheduleService

All Known Implementing Classes:
QuartzSchedulerServiceAdapter, ScheduledExecutorServiceAdapter

public interface IScheduleService

Interface defines methods which should be offered by a schedule service.

Since:
0.0.1 (sasl-common-aspect-library)
Author:
Philipp Förmer

Method Summary
<V> ScheduledFuture<V>
schedule(Callable<V> callable, long millis)
          Tries to schedule the callable at now + millis for execution.
 

Method Detail

schedule

<V> ScheduledFuture<V> schedule(Callable<V> callable,
                                long millis)
                            throws IllegalArgumentException
Tries to schedule the callable at now + millis for execution.

Parameters:
callable - non null
millis - integer value greater or equal 0.
Returns:
null, if the callable could not get scheduled, a scheduled future else.
Throws:
IllegalArgumentException - if callable is null or millis lesser than 0.


Copyright © 2010. All Rights Reserved.