Module org.snmp4j

Class AbstractSocketEntry

    • Field Detail

      • socket

        protected java.net.Socket socket
    • Constructor Detail

      • AbstractSocketEntry

        public AbstractSocketEntry​(TcpAddress address,
                                   java.net.Socket socket)
    • Method Detail

      • addRegistration

        public void addRegistration​(java.nio.channels.Selector selector,
                                    int opKey)
                             throws java.nio.channels.ClosedChannelException
        Throws:
        java.nio.channels.ClosedChannelException
      • removeRegistration

        public void removeRegistration​(java.nio.channels.Selector selector,
                                       int opKey)
                                throws java.nio.channels.ClosedChannelException
        Throws:
        java.nio.channels.ClosedChannelException
      • isRegistered

        public boolean isRegistered​(int opKey)
      • getSocket

        public java.net.Socket getSocket()
      • getMessages

        public java.util.LinkedList<byte[]> getMessages()
      • addMessage

        public void addMessage​(byte[] message)
      • nextMessage

        public byte[] nextMessage()
      • hasMessage

        public boolean hasMessage()
      • nextBusyLoop

        public int nextBusyLoop()
      • resetBusyLoops

        public void resetBusyLoops()
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object