Class SubAgentXIndexEntry
java.lang.Object
org.snmp4j.agent.agentx.master.index.IndexEntry
org.snmp4j.agent.agentx.subagent.index.SubAgentXIndexEntry
- All Implemented Interfaces:
Comparable<Object>
SubAgentXIndexEntry
extends IndexEntry
by a reference counter to allow save removal
of index entries if the counter is 0.-
Constructor Summary
ConstructorDescriptionSubAgentXIndexEntry
(int sessionID, org.snmp4j.smi.Variable indexValue) Creates aSubAgentXIndexEntry
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Decrements the reference count by one (if it is greater than zero).int
Gets the reference count.void
Increments the reference count by one.Methods inherited from class org.snmp4j.agent.agentx.master.index.IndexEntry
compareTo, equals, getIndexValue, getSessionID, hashCode
-
Constructor Details
-
SubAgentXIndexEntry
public SubAgentXIndexEntry(int sessionID, org.snmp4j.smi.Variable indexValue) Creates aSubAgentXIndexEntry
instance.- Parameters:
sessionID
- session ID.indexValue
- the value of the index.
-
-
Method Details
-
getReferenceCount
public int getReferenceCount()Gets the reference count.- Returns:
- the reference count (0 means no references left).
-
incReferenceCount
public void incReferenceCount()Increments the reference count by one. -
decReferenceCount
public void decReferenceCount()Decrements the reference count by one (if it is greater than zero).
-