Class DummySession

    • Constructor Detail

      • DummySession

        public DummySession()
        Creates a new instance.
    • Method Detail

      • setConfig

        public void setConfig​(IoSessionConfig config)
        Sets the configuration of this session.
        Parameters:
        config - the IoSessionConfig to set
      • getFilterChain

        public IoFilterChain getFilterChain()
        Returns:
        the filter chain that only affects this session.
      • setHandler

        public void setHandler​(IoHandler handler)
        Sets the IoHandler which handles this session.
        Parameters:
        handler - the IoHandler to set
      • getLocalAddress

        public SocketAddress getLocalAddress()
        Returns:
        the socket address of local machine which is associated with this session.
      • getRemoteAddress

        public SocketAddress getRemoteAddress()
        Returns:
        the socket address of remote peer.
      • setLocalAddress

        public void setLocalAddress​(SocketAddress localAddress)
        Sets the socket address of local machine which is associated with this session.
        Parameters:
        localAddress - The socket address to set
      • setRemoteAddress

        public void setRemoteAddress​(SocketAddress remoteAddress)
        Sets the socket address of remote peer.
        Parameters:
        remoteAddress - The socket address to set
      • setService

        public void setService​(IoService service)
        Sets the IoService which provides I/O service to this session.
        Parameters:
        service - The IoService to set
      • setScheduledWriteBytes

        public void setScheduledWriteBytes​(int byteCount)
        Set the number of scheduled write bytes
        Overrides:
        setScheduledWriteBytes in class AbstractIoSession
        Parameters:
        byteCount - The number of scheduled bytes for write
      • setScheduledWriteMessages

        public void setScheduledWriteMessages​(int messages)
        Set the number of scheduled write messages
        Overrides:
        setScheduledWriteMessages in class AbstractIoSession
        Parameters:
        messages - The number of scheduled messages for write
      • updateThroughput

        public void updateThroughput​(boolean force)
        Update all statistical properties related with throughput. By default this method returns silently without updating the throughput properties if they were calculated already within last calculation interval. If, however, force is specified as true, this method updates the throughput properties immediately.
        Parameters:
        force - the flag that forces the update of properties immediately if true