public class NodeQueryCacheScheduler extends Object implements QueryCacheScheduler
QueryCacheScheduler
.QueryCacheScheduler
Constructor and Description |
---|
NodeQueryCacheScheduler(MapServiceContext mapServiceContext) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Runnable task)
Executes a task.
|
ScheduledFuture<?> |
scheduleWithRepetition(Runnable task,
long delaySeconds)
Executes a task periodically with the supplied
delaySeconds . |
void |
shutdown()
Shuts down this scheduler.
|
public NodeQueryCacheScheduler(MapServiceContext mapServiceContext)
public ScheduledFuture<?> scheduleWithRepetition(Runnable task, long delaySeconds)
QueryCacheScheduler
delaySeconds
.scheduleWithRepetition
in interface QueryCacheScheduler
task
- task to execute.delaySeconds
- the time between subsequent executionpublic void execute(Runnable task)
QueryCacheScheduler
execute
in interface QueryCacheScheduler
task
- task to execute.public void shutdown()
QueryCacheScheduler
shutdown
in interface QueryCacheScheduler
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.