GemFire 6.6.3

Interface CustomExpiry<K,V>

All Superinterfaces:

public interface CustomExpiry<K,V>
extends CacheCallback

This is the contract that a custom-expiry element must honor. It determines the expiration characteristics for a specific entry in a region.

Note that if you wish to refer to an implementation of this interface in XML, the implementation must also implement the Declarable interface.

Method Summary
 ExpirationAttributes getExpiry(Region.Entry<K,V> entry)
          Calculate the expiration for a given entry.
Methods inherited from interface com.gemstone.gemfire.cache.CacheCallback

Method Detail


ExpirationAttributes getExpiry(Region.Entry<K,V> entry)
Calculate the expiration for a given entry. Null indicates that the default for the region should be used.

entry - the entry to calculate the expiration for
the expiration to be used, null if the region's defaults should be used.

GemFire 6.6.3

Copyright © 1997-2012 VMware, Inc. All rights reserved.