GemFire 5.8

com.gemstone.gemfire.cache
Interface CustomExpiry

All Superinterfaces:
CacheCallback, Declarable

public interface CustomExpiry
extends Declarable, CacheCallback

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


Method Summary
 ExpirationAttributes getExpiry(Region.Entry entry)
          Calculate the expiration for a given entry.
 
Methods inherited from interface com.gemstone.gemfire.cache.Declarable
init
 
Methods inherited from interface com.gemstone.gemfire.cache.CacheCallback
close
 

Method Detail

getExpiry

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

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

GemFire 5.8

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.