public final class NioEventLoops extends Object implements EventLoops
| Constructor and Description |
|---|
NioEventLoops()
Create direct NIO event loops, one per CPU core.
|
NioEventLoops(EventPolicy policy,
int size)
Create direct NIO event loops.
|
NioEventLoops(EventPolicy policy,
int size,
boolean daemon,
String poolName)
Create direct NIO event loops.
|
NioEventLoops(int size)
Create direct NIO event loops.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all event loops.
|
NioEventLoop |
get(int index)
Return event loop given array index.
|
NioEventLoop[] |
getArray()
Return array of event loops.
|
int |
getSize()
Return number of event loops in this group.
|
NioEventLoop |
next()
Return next event loop in round-robin fashion.
|
public NioEventLoops()
throws AerospikeException
AerospikeExceptionpublic NioEventLoops(int size)
throws AerospikeException
size - number of event loops to createAerospikeExceptionpublic NioEventLoops(EventPolicy policy, int size) throws AerospikeException
policy - event loop policysize - number of event loops to createAerospikeExceptionpublic NioEventLoops(EventPolicy policy, int size, boolean daemon, String poolName) throws AerospikeException
policy - event loop policysize - number of event loops to createdaemon - true if the associated threads should run as a daemonspoolName - event loop thread pool nameAerospikeExceptionpublic NioEventLoop[] getArray()
getArray in interface EventLoopspublic int getSize()
getSize in interface EventLoopspublic NioEventLoop get(int index)
get in interface EventLoopspublic NioEventLoop next()
next in interface EventLoopspublic void close()
close in interface EventLoopsclose in interface Closeableclose in interface AutoCloseableCopyright © 2012–2024 Aerospike, Inc. All rights reserved.