public interface EventLoop
Modifier and Type | Method and Description |
---|---|
com.aerospike.client.async.EventState |
createState()
For internal use only.
|
void |
execute(com.aerospike.client.cluster.Cluster cluster,
com.aerospike.client.async.AsyncCommand command)
Execute async command.
|
void |
execute(Runnable command)
Schedule execution of runnable command on event loop.
|
int |
getIndex()
Return event loop array index.
|
int |
getProcessSize()
Return the approximate number of commands currently being processed on
the event loop.
|
int |
getQueueSize()
Return the approximate number of commands stored on this event loop's
delay queue that have not been started yet.
|
boolean |
inEventLoop()
Is current thread the event loop thread.
|
void |
schedule(Runnable command,
long delay,
TimeUnit unit)
Schedule execution of runnable command with delay.
|
void |
schedule(com.aerospike.client.async.ScheduleTask task,
long delay,
TimeUnit unit)
Schedule execution with a reusable ScheduleTask.
|
void execute(com.aerospike.client.cluster.Cluster cluster, com.aerospike.client.async.AsyncCommand command)
void execute(Runnable command)
void schedule(Runnable command, long delay, TimeUnit unit)
void schedule(com.aerospike.client.async.ScheduleTask task, long delay, TimeUnit unit)
int getProcessSize()
int getQueueSize()
int getIndex()
boolean inEventLoop()
com.aerospike.client.async.EventState createState()
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.