|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.mp.MPv3.Cache
protected static class MPv3.Cache
The Cache stores state reference information for the MPv3.
| Constructor Summary | |
|---|---|
protected |
MPv3.Cache()
|
| Method Summary | |
|---|---|
int |
addEntry(StateReference entry)
Adds a StateReference to the cache. |
boolean |
deleteEntry(PduHandle pduHandle)
Delete the cache entry with the supplied PduHandle. |
StateReference |
popEntry(int msgID)
Pop the cache entry with the supplied ID from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MPv3.Cache()
| Method Detail |
|---|
public int addEntry(StateReference entry)
StateReference to the cache.
The PduHandle of the supplied entry will be set to
null while the entry is part of the cache, because the
cache uses a WeakHashMap internally which uses the
PduHandle as key. When
entry - the state reference to add.
SnmpConstants.SNMP_MP_DOUBLED_MESSAGE if the entry already
exists and SnmpConstants.SNMP_MP_OK on success.public boolean deleteEntry(PduHandle pduHandle)
PduHandle.
pduHandle - a pduHandle.
true if an entry has been deleted, false
otherwise.public StateReference popEntry(int msgID)
msgID - a message ID.
CacheEntry instance with the given message ID or
null if such an entry cannot be found. If a cache entry
is returned, the same is removed from the cache.
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||