Interface IoHandle

    • Method Detail

      • handle

        void handle​(IoRegistration registration,
                    IoEvent ioEvent)
        Be called once there is something to handle.
        Parameters:
        registration - the IoRegistration for this IoHandle.
        ioEvent - the IoEvent that must be handled. The IoEvent is only valid while this method is executed and so must not escape it.
      • close

        void close()
            throws java.lang.Exception
        Called once the IoHandle should be closed. Even once this method is called this handle might still receive events via handle(IoRegistration, IoEvent) (if it was previous be registered and so its registered() method was called) until the unregistered() method is called.
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception