|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvictorData
This interface is optionally used by an implementator of the
Evictor
interface. Application changes applied to a
BackingMap
are asynchronous from the Evictor
activity. The Evictor
is not notified of changes to
the BackingMap
until after application transactions are
committed. Consequently, if an Evictor
decides to evict a map
entry, it is possible that the BackingMap
could evict an entry
that was different from the original entry it was tracking. For example,
consider that an application could execute a transaction that removes a map
entry. Before the Evictor
is notified of the remove, another
transaction inserts a new entry into the BackingMap
for the same
key as the old entry. Consequently, the Evictor
could evict the
newly created entry when it meant to evict the old entry. To help close this
small timing window, the Evictor
can use this interface to
associate evictor specific data with a map entry.
The Evictor
can then do the following:
EvictorData
object for a map entry by using the
EvictionEventCallback.setEvictorData(Object, EvictorData)
method.
EvictorData
object for a map entry by using
the EvictionEventCallback.getEvictorData(Object)
method.
EvictorData
object
(the java == operator returns true) associated with it by using the
EvictionEventCallback.evictMapEntries(List)
method.
Evictor
,
EvictionEventCallback
Nested Class Summary | |
---|---|
static class |
EvictorData.SpecialEvictorData
Special value class used for representing the key not being found in the BackingMap . |
Field Summary | |
---|---|
static EvictorData |
KEY_NOT_FOUND
A special value indicating that the key was not found. |
Method Summary | |
---|---|
Object |
getKey()
Retrieves the key object for this EvictorData instance. |
Field Detail |
---|
static final EvictorData KEY_NOT_FOUND
Method Detail |
---|
Object getKey()
EvictorData
instance.
EvictionEventCallback.setEvictorData(Object, EvictorData)
method when this EvictorData was associated with the map entry
with the given key.EvictionEventCallback.setEvictorData(Object, EvictorData)
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |