Class VmPipeFilterChain.VmPipeIoProcessor

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private VmPipeIoProcessor()  
    • Constructor Detail

      • VmPipeIoProcessor

        private VmPipeIoProcessor()
    • Method Detail

      • flush

        public void flush​(VmPipeSession session)
        Description copied from interface: IoProcessor
        Flushes the internal write request queue of the specified session.
        Specified by:
        flush in interface IoProcessor<VmPipeSession>
        Parameters:
        session - The session we want the message to be written
      • write

        public void write​(VmPipeSession session,
                          WriteRequest writeRequest)
        Writes the WriteRequest for the specified session.
        Specified by:
        write in interface IoProcessor<VmPipeSession>
        Parameters:
        session - The session we want the message to be written
        writeRequest - the WriteRequest to write
      • getMessageCopy

        private java.lang.Object getMessageCopy​(java.lang.Object message)
      • remove

        public void remove​(VmPipeSession session)
        Description copied from interface: IoProcessor
        Removes and closes the specified session from the I/O processor so that the I/O processor closes the connection associated with the session and releases any other related resources.
        Specified by:
        remove in interface IoProcessor<VmPipeSession>
        Parameters:
        session - The session to be removed
      • add

        public void add​(VmPipeSession session)
        Description copied from interface: IoProcessor
        Adds the specified session to the I/O processor so that the I/O processor starts to perform any I/O operations related with the session.
        Specified by:
        add in interface IoProcessor<VmPipeSession>
        Parameters:
        session - The added session
      • dispose

        public void dispose()
        Description copied from interface: IoProcessor
        Releases any resources allocated by this processor. Please note that the resources might not be released as long as there are any sessions managed by this processor. Most implementations will close all sessions immediately and release the related resources.
        Specified by:
        dispose in interface IoProcessor<VmPipeSession>
      • isDisposed

        public boolean isDisposed()
        Specified by:
        isDisposed in interface IoProcessor<VmPipeSession>
        Returns:
        true if and if only all resources of this processor have been disposed.
      • isDisposing

        public boolean isDisposing()
        Specified by:
        isDisposing in interface IoProcessor<VmPipeSession>
        Returns:
        true if and if only IoProcessor.dispose() method has been called. Please note that this method will return true even after all the related resources are released.