public final class NettyEventLoop extends EventLoopBase
Constructor and Description |
---|
NettyEventLoop(EventPolicy policy,
io.netty.channel.EventLoop eventLoop,
NettyEventLoops parent,
int index)
Construct Aerospike event loop wrapper from netty event loop.
|
Modifier and Type | Method and Description |
---|---|
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.
|
io.netty.channel.EventLoop |
get()
Return netty event loop.
|
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.
|
createState, getIndex, getProcessSize, getQueueSize
public NettyEventLoop(EventPolicy policy, io.netty.channel.EventLoop eventLoop, NettyEventLoops parent, int index)
public io.netty.channel.EventLoop get()
public 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 boolean inEventLoop()
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.