IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.revision
Interface CollisionData


public interface CollisionData

Holds data necessary for arbitrating collisions between entries.

Since:
7.1

Method Summary
 RevisionElement getCollision()
          Retrieves the revision element wrapping the value that has collided with the entry in the cache.
 RevisionElement getExisting()
          Retrieves the revision element wrapping the value that is currently in the cache.
 Object getKey()
          Retrieves the key to the cache entry that has the collision.
 ObjectMap getMap()
          Retrieves the map that changes for this revision transaction will be committed under.
 Session getSession()
          Retrieves the session that this revision transaction is operating under.
 

Method Detail

getSession

Session getSession()
Retrieves the session that this revision transaction is operating under.

Returns:
The active revision session.

getMap

ObjectMap getMap()
Retrieves the map that changes for this revision transaction will be committed under.

Returns:
The active revision map.

getKey

Object getKey()
Retrieves the key to the cache entry that has the collision. For a cache entry in an ObjectMap that is configured to use OutputFormat.RAW for the keys, the key object returned will be a SerializedKey object. If required, you can use the DataObjectEntry.getObject() method to inflate the bytes to the key object.

Returns:
The application key or SerializedKey object as described.

getExisting

RevisionElement getExisting()
Retrieves the revision element wrapping the value that is currently in the cache.

Returns:
The entry that is currently in the cache.

getCollision

RevisionElement getCollision()
Retrieves the revision element wrapping the value that has collided with the entry in the cache.

Returns:
The entry that is pending arbitration.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.