Package com.aerospike.client.async
Class EventLoopBase
java.lang.Object
com.aerospike.client.async.EventLoopBase
- All Implemented Interfaces:
EventLoop
- Direct Known Subclasses:
NettyEventLoop
,NioEventLoop
Common methods for Netty and NIO event loop.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.aerospike.client.async.EventState
For internal use only.int
getIndex()
Return event loop array index.int
Return the approximate number of commands currently being processed on the event loop.int
Return the approximate number of commands stored on this event loop's delay queue that have not been started yet.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aerospike.client.async.EventLoop
createConnector, execute, execute, executeBatchRetry, inEventLoop, schedule, schedule
-
Constructor Details
-
EventLoopBase
Common event loop constructor.
-
-
Method Details
-
getProcessSize
public int getProcessSize()Return the approximate number of commands currently being processed on the event loop. The value is approximate because the call may be from a different thread than the event loop’s thread and there are no locks or atomics used.- Specified by:
getProcessSize
in interfaceEventLoop
-
getQueueSize
public int getQueueSize()Return the approximate number of commands stored on this event loop's delay queue that have not been started yet. The value is approximate because the call may be from a different thread than the event loop’s thread and there are no locks or atomics used.- Specified by:
getQueueSize
in interfaceEventLoop
-
getIndex
public int getIndex()Return event loop array index. -
createState
public com.aerospike.client.async.EventState createState()For internal use only.- Specified by:
createState
in interfaceEventLoop
-