- Direct Known Subclasses:
DefaultTcpTransportMapping.SocketEntry,TLSTM.SocketEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final LogAdapterprivate final LinkedList<byte[]> private intprotected Socket -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(byte[] message) voidaddRegistration(Selector selector, int opKey) LinkedList<byte[]> booleanvoidinsertMessages(List<byte[]> messages) booleanisRegistered(int opKey) intbyte[]voidremoveRegistration(Selector selector, int opKey) voidabstract StringtoString()Methods inherited from class org.snmp4j.transport.AbstractServerSocket
getLastUse, getPeerAddress, getSocketTimeout, isHandshakeFinished, setHandshakeFinished, setSocketTimeout, used
-
Field Details
-
logger
-
socket
-
registrations
private volatile int registrations -
messages
-
busyLoops
private volatile int busyLoops
-
-
Constructor Details
-
AbstractSocketEntry
-
-
Method Details
-
addRegistration
- Throws:
ClosedChannelException
-
removeRegistration
- Throws:
ClosedChannelException
-
isRegistered
public boolean isRegistered(int opKey) -
getSocket
-
getMessages
-
addMessage
public void addMessage(byte[] message) -
insertMessages
-
nextMessage
public byte[] nextMessage() -
hasMessage
public boolean hasMessage() -
nextBusyLoop
public int nextBusyLoop() -
resetBusyLoops
public void resetBusyLoops() -
toString
-