Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
NioEventLoop(EventPolicy policy,
SelectorProvider provider,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static ByteBuffer |
createByteBuffer(int size) |
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.
|
ByteBuffer |
getByteBuffer() |
int |
getIndex()
Return event loop array index.
|
void |
putByteBuffer(ByteBuffer byteBuffer) |
void |
run() |
void |
schedule(Runnable command,
long delay,
TimeUnit unit)
Schedule execution of runnable command with delay in milliseconds.
|
void |
schedule(com.aerospike.client.async.ScheduleTask task,
long delay,
TimeUnit unit)
Schedule execution with a reusable ScheduleTask.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic NioEventLoop(EventPolicy policy, SelectorProvider provider, int index) throws IOException
IOExceptionpublic void execute(com.aerospike.client.cluster.Cluster cluster,
com.aerospike.client.async.AsyncCommand command)
public void execute(Runnable command)
public void schedule(Runnable command, long delay, TimeUnit unit)
public void schedule(com.aerospike.client.async.ScheduleTask task,
long delay,
TimeUnit unit)
public int getIndex()
public com.aerospike.client.async.EventState createState()
createState in interface EventLooppublic static ByteBuffer createByteBuffer(int size)
public ByteBuffer getByteBuffer()
public void putByteBuffer(ByteBuffer byteBuffer)
public void close()
Copyright © 2012–2017 Aerospike, Inc. All rights reserved.