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 |
---|---|
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.
|
io.netty.channel.EventLoop |
get()
Return netty event loop.
|
int |
getIndex()
Return event loop array index.
|
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.
|
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 int getIndex()
public boolean inEventLoop()
inEventLoop
in interface EventLoop
public com.aerospike.client.async.EventState createState()
createState
in interface EventLoop
Copyright © 2012–2017 Aerospike, Inc. All rights reserved.