Class SubAgentXIndexEntry

java.lang.Object
org.snmp4j.agent.agentx.master.index.IndexEntry
org.snmp4j.agent.agentx.subagent.index.SubAgentXIndexEntry
All Implemented Interfaces:
Comparable<Object>

public class SubAgentXIndexEntry extends IndexEntry
SubAgentXIndexEntry extends IndexEntry by a reference counter to allow save removal of index entries if the counter is 0.
  • Constructor Details

    • SubAgentXIndexEntry

      public SubAgentXIndexEntry(int sessionID, org.snmp4j.smi.Variable indexValue)
      Creates a SubAgentXIndexEntry 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).