Package one.nio.net

Class Session

    • Constructor Detail

      • Session

        public Session​(Socket socket)
      • Session

        public Session​(Socket socket,
                       int eventsToListen)
    • Method Detail

      • getRemoteHost

        public final String getRemoteHost()
      • socket

        public final Socket socket()
      • lastAccessTime

        public final long lastAccessTime()
      • isSsl

        public boolean isSsl()
      • checkStatus

        public int checkStatus​(long currentTime,
                               long keepAlive)
      • scheduleClose

        public void scheduleClose()
      • getQueueStats

        public void getQueueStats​(long[] stats)
      • listen

        public void listen​(int newEventsToListen)
      • write

        public final void write​(byte[] data,
                                int offset,
                                int count)
                         throws IOException
        Throws:
        IOException
      • write

        public final void write​(byte[] data,
                                int offset,
                                int count,
                                int flags)
                         throws IOException
        Throws:
        IOException
      • processRead

        protected void processRead​(byte[] buffer)
                            throws Exception
        Throws:
        Exception
      • handleException

        public void handleException​(Throwable e)