public class SubScheduledExecutorService extends SubExecutorService implements ScheduledExecutorService
SubExecutorService
. Supports delegation to ScheduledThreadPoolExecutor
only.Modifier and Type | Class and Description |
---|---|
protected class |
SubScheduledExecutorService.ScheduledCallableTask<V> |
protected class |
SubScheduledExecutorService.ScheduledRunnableTask<V> |
protected static interface |
SubScheduledExecutorService.ScheduledTask<V> |
SubExecutorService.CallableTask<V>, SubExecutorService.RunnableTask<V>, SubExecutorService.Task<V>
Constructor and Description |
---|
SubScheduledExecutorService(ScheduledThreadPoolExecutor executorService)
Constructs a new SubExecutorService for the given executor service.
|
Modifier and Type | Method and Description |
---|---|
protected ScheduledThreadPoolExecutor |
getExecutorService() |
<V> ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
protected void |
shutdownTasks(Set<SubExecutorService.Task> tasks) |
acquireAlive, awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isAlive, isRunning, isShutdown, isTerminated, register, releaseAlive, shutdown, shutdownNow, submit, submit, submit, throwRejected, toString, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
public SubScheduledExecutorService(ScheduledThreadPoolExecutor executorService)
executorService
- the underlying executor service to submit tasks topublic ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate
in interface ScheduledExecutorService
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay
in interface ScheduledExecutorService
protected ScheduledThreadPoolExecutor getExecutorService()
getExecutorService
in class SubExecutorService
protected void shutdownTasks(Set<SubExecutorService.Task> tasks)
shutdownTasks
in class SubExecutorService
Copyright © 2009–2020 OrientDB. All rights reserved.