public class SyncExecutionService extends BasicService implements IExecutionService
EMPTY_SERVICES| Constructor and Description |
|---|
SyncExecutionService(IServiceProvider provider)
Create a new synchronous executor service.
|
SyncExecutionService(IServiceProvider provider,
Map<String,Object> properties)
Create a new synchronous executor service.
|
| Modifier and Type | Method and Description |
|---|---|
IFuture<Void> |
cancel(IExecutable task)
Cancel a task.
|
boolean |
customIsValid()
Test if the service is valid.
|
void |
execute(IExecutable task)
Execute a task.
|
IFuture<Void> |
getNextIdleFuture()
Get the future indicating that executor is idle.
|
IExecutable[] |
getTasks()
Get the currently running or waiting tasks.
|
IFuture<Void> |
shutdownService()
Shutdown the executor service.
|
IFuture<Void> |
startService()
Start the executor service.
|
createServiceIdentifier, createServiceIdentifier, equals, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMapgetClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyMap, getServiceIdentifier, isValidpublic SyncExecutionService(IServiceProvider provider)
public SyncExecutionService(IServiceProvider provider, Map<String,Object> properties)
public void execute(IExecutable task)
execute in interface IExecutionServicetask - The task to execute.public IFuture<Void> cancel(IExecutable task)
cancel in interface IExecutionServicetask - The task to execute.public IExecutable[] getTasks()
getTasks in interface IExecutionServicepublic boolean customIsValid()
public IFuture<Void> startService()
startService in interface IInternalServicestartService in class BasicServicepublic IFuture<Void> shutdownService()
shutdownService in interface IInternalServiceshutdownService in class BasicServicepublic IFuture<Void> getNextIdleFuture()
getNextIdleFuture in interface IExecutionServiceCopyright © 2012. All Rights Reserved.