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
ConstructorsConstructorDescriptionSubAgentXIndexEntry(int sessionID, org.snmp4j.smi.Variable indexValue) Creates aSubAgentXIndexEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidDecrements the reference count by one (if it is greater than zero).intGets the reference count.voidIncrements 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 aSubAgentXIndexEntryinstance.- 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).
-