Interface IOReactor

    • Method Detail

      • close

        void close​(CloseMode closeMode)
        Shuts down the I/O reactor either gracefully or immediately. During graceful shutdown individual I/O sessions should be informed about imminent termination and be given a grace period to complete the ongoing I/O sessions. During immediate shutdown all ongoing I/O sessions get aborted immediately.
        Specified by:
        close in interface ModalCloseable
        Parameters:
        closeMode - How to close the receiver.
      • getStatus

        IOReactorStatus getStatus()
        Returns the current status of the reactor.
        Returns:
        reactor status.
      • initiateShutdown

        void initiateShutdown()
        Initiates shutdown of the reactor without blocking. The reactor is expected to terminate all active connections, to shut down itself and to release system resources it currently holds
        Since:
        5.0
      • awaitShutdown

        void awaitShutdown​(TimeValue waitTime)
                    throws java.lang.InterruptedException
        Blocks for the given period of time in milliseconds awaiting the completion of the reactor shutdown.
        Parameters:
        waitTime - wait time.
        Throws:
        java.lang.InterruptedException
        Since:
        5.0