Class NioEventLoops

java.lang.Object
com.aerospike.client.async.NioEventLoops
All Implemented Interfaces:
EventLoops, Closeable, AutoCloseable

public final class NioEventLoops extends Object implements EventLoops
Asynchronous event loops.
  • Constructor Details

    • NioEventLoops

      public NioEventLoops() throws AerospikeException
      Create direct NIO event loops, one per CPU core.
      Throws:
      AerospikeException
    • NioEventLoops

      public NioEventLoops(int size) throws AerospikeException
      Create direct NIO event loops.
      Parameters:
      size - number of event loops to create
      Throws:
      AerospikeException
    • NioEventLoops

      public NioEventLoops(EventPolicy policy, int size) throws AerospikeException
      Create direct NIO event loops.
      Parameters:
      policy - event loop policy
      size - number of event loops to create
      Throws:
      AerospikeException
    • NioEventLoops

      public NioEventLoops(EventPolicy policy, int size, boolean daemon, String poolName) throws AerospikeException
      Create direct NIO event loops.
      Parameters:
      policy - event loop policy
      size - number of event loops to create
      daemon - true if the associated threads should run as a daemons
      poolName - event loop thread pool name
      Throws:
      AerospikeException
  • Method Details