com.ibm.websphere.cache

Interface DistributedNioMapObject


  1. public interface DistributedNioMapObject
Implement this interface in your cacheable object before placing it into cache if you need to get control at the time the object is being removed from cache.
See Also:
DistributedNioMap

Method Summary

Modifier and Type Method and Description
  1. long
getCacheValueSize()
This determines the best-effort size of the DistributedNioMapObject's value.
  1. void
release()
Release the cached object(ByteBuffers/MetaData) to the NIO buffer management.
  1. java.lang.String
toString()
toString() method used to display.

Method Detail

release

  1. void release()
Release the cached object(ByteBuffers/MetaData) to the NIO buffer management.
See Also:

toString

  1. java.lang.String toString()
toString() method used to display.
Overrides:
toString in class java.lang.Object

getCacheValueSize

  1. long getCacheValueSize()
This determines the best-effort size of the DistributedNioMapObject's value.
Returns:
The best-effort determination of the size of the DistributedNioMapObject's value. If the size cannot be determined, the return value is -1;