Class AprSocketConnector

    • Constructor Detail

      • AprSocketConnector

        public AprSocketConnector()
        Create an AprSocketConnector with default configuration (multiple thread model).
      • AprSocketConnector

        public AprSocketConnector​(int processorCount)
        Constructor for AprSocketConnector with default configuration, and given number of AprIoProcessor for multithreading I/O operations
        Parameters:
        processorCount - the number of processor to create and place in a SimpleIoProcessorPool
      • AprSocketConnector

        public AprSocketConnector​(IoProcessor<AprSession> processor)
        Constructor for AprSocketConnector with default configuration but a specific IoProcessor, useful for sharing the same processor over multiple IoService of the same type.
        Parameters:
        processor - the processor to use for managing I/O events
      • AprSocketConnector

        public AprSocketConnector​(java.util.concurrent.Executor executor,
                                  IoProcessor<AprSession> processor)
        Constructor for AprSocketConnector with a given Executor for handling connection events and a given IoProcessor for handling I/O events, useful for sharing the same processor and executor over multiple IoService of the same type.
        Parameters:
        executor - the executor for connection
        processor - the processor for I/O operations