- java.lang.Object
-
- org.snmp4j.transport.AbstractServerSocket<A>
-
- org.snmp4j.transport.AbstractSocketEntry<TcpAddress>
-
- org.snmp4j.transport.DefaultTcpTransportMapping.SocketEntry
-
- Enclosing class:
- DefaultTcpTransportMapping
protected static class DefaultTcpTransportMapping.SocketEntry extends AbstractSocketEntry<TcpAddress>
-
-
Field Summary
-
Fields inherited from class org.snmp4j.transport.AbstractSocketEntry
socketChannel
-
-
Constructor Summary
Constructors Constructor Description SocketEntry(TcpAddress address, SocketChannel socketChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeSession()
Close the (TLS) session associated with the socket entry.ByteBuffer
getReadBuffer()
Object
getSessionID()
Gets the unique identifier of the associated (TLS) session.void
setReadBuffer(ByteBuffer byteBuffer)
String
toString()
-
Methods inherited from class org.snmp4j.transport.AbstractSocketEntry
addMessage, addRegistration, getMessages, getSocketChannel, hasMessage, insertMessages, isRegistered, nextBusyLoop, nextMessage, removeRegistration, resetBusyLoops
-
Methods inherited from class org.snmp4j.transport.AbstractServerSocket
getLastUse, getPeerAddress, getSocketTimeout, isHandshakeFinished, setHandshakeFinished, setSocketTimeout, used
-
-
-
-
Constructor Detail
-
SocketEntry
public SocketEntry(TcpAddress address, SocketChannel socketChannel)
-
-
Method Detail
-
closeSession
public void closeSession()
Description copied from class:AbstractSocketEntry
Close the (TLS) session associated with the socket entry.- Specified by:
closeSession
in classAbstractSocketEntry<TcpAddress>
-
getSessionID
public Object getSessionID()
Description copied from class:AbstractSocketEntry
Gets the unique identifier of the associated (TLS) session.- Specified by:
getSessionID
in classAbstractSocketEntry<TcpAddress>
- Returns:
- a session identifier.
-
setReadBuffer
public void setReadBuffer(ByteBuffer byteBuffer)
-
getReadBuffer
public ByteBuffer getReadBuffer()
-
toString
public String toString()
- Specified by:
toString
in classAbstractSocketEntry<TcpAddress>
-
-