public class ScheduledExecutorContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,ScheduledTaskDescriptor> |
tasks |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(String taskName) |
protected InvocationBuilder |
createInvocationBuilder(Operation op) |
void |
destroy() |
void |
dispose(String taskName) |
Object |
get(String taskName) |
long |
getDelay(String taskName,
TimeUnit unit) |
int |
getDurability() |
String |
getName() |
NodeEngine |
getNodeEngine() |
ScheduledTaskStatistics |
getStatistics(String taskName) |
Collection<ScheduledTaskDescriptor> |
getTasks() |
boolean |
isCancelled(String taskName) |
boolean |
isDone(String taskName) |
ScheduledTaskHandler |
offprintHandler(String taskName) |
protected void |
publishTaskState(String taskName,
Map stateSnapshot,
ScheduledTaskStatisticsImpl statsSnapshot)
State is published after every run.
|
ScheduledFuture |
schedule(TaskDefinition definition) |
boolean |
shouldParkGetResult(String taskName) |
void |
stash(TaskDefinition definition) |
void |
syncState(String taskName,
Map newState,
ScheduledTaskStatisticsImpl stats) |
void |
unstash(String taskName) |
protected final ConcurrentMap<String,ScheduledTaskDescriptor> tasks
public ScheduledFuture schedule(TaskDefinition definition)
public boolean cancel(String taskName) throws ExecutionException, InterruptedException
public Object get(String taskName) throws ExecutionException, InterruptedException
public ScheduledTaskStatistics getStatistics(String taskName)
public boolean isCancelled(String taskName) throws ExecutionException, InterruptedException
public boolean isDone(String taskName) throws ExecutionException, InterruptedException
public void destroy()
public void dispose(String taskName) throws ExecutionException, InterruptedException
public void stash(TaskDefinition definition)
public void unstash(String taskName)
public Collection<ScheduledTaskDescriptor> getTasks()
public void syncState(String taskName, Map newState, ScheduledTaskStatisticsImpl stats) throws ExecutionException, InterruptedException
public boolean shouldParkGetResult(String taskName) throws ExecutionException, InterruptedException
public int getDurability()
public String getName()
public NodeEngine getNodeEngine()
public ScheduledTaskHandler offprintHandler(String taskName)
protected void publishTaskState(String taskName, Map stateSnapshot, ScheduledTaskStatisticsImpl statsSnapshot)
TaskRunner#initOnce()
protected InvocationBuilder createInvocationBuilder(Operation op)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.