public class ClientQueryCacheScheduler extends Object implements QueryCacheScheduler
QueryCacheScheduler
.QueryCacheScheduler
Constructor and Description |
---|
ClientQueryCacheScheduler(ClientExecutionService executionService) |
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 ClientQueryCacheScheduler(ClientExecutionService executionService)
public void execute(Runnable task)
QueryCacheScheduler
execute
in interface QueryCacheScheduler
task
- task to execute.public ScheduledFuture<?> scheduleWithRepetition(Runnable task, long delaySeconds)
QueryCacheScheduler
delaySeconds
.scheduleWithRepetition
in interface QueryCacheScheduler
task
- task to execute.delaySeconds
- the time between subsequent executionpublic void shutdown()
QueryCacheScheduler
shutdown
in interface QueryCacheScheduler
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.