com.googlecode.icegem.expiration
Class ExpirationFunction
java.lang.Object
com.gemstone.gemfire.cache.execute.FunctionAdapter
com.googlecode.icegem.expiration.ExpirationFunction
- All Implemented Interfaces:
- com.gemstone.gemfire.cache.Declarable, com.gemstone.gemfire.cache.execute.Function, Serializable
public class ExpirationFunction
- extends com.gemstone.gemfire.cache.execute.FunctionAdapter
- implements com.gemstone.gemfire.cache.Declarable
Expires the region entries according to the ExpirationPolicy specified.
- See Also:
- Serialized Form
| Methods inherited from class com.gemstone.gemfire.cache.execute.FunctionAdapter |
hasResult, isHA, optimizeForWrite |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpirationFunction
public ExpirationFunction(ExpirationPolicy policy)
- Creates the instance of the ExpirationFunction and configures it with
ExpirationPolicy.
- Parameters:
policy - - the expiration policy
init
public void init(Properties arg0)
- Specified by:
init in interface com.gemstone.gemfire.cache.Declarable
execute
public void execute(com.gemstone.gemfire.cache.execute.FunctionContext functionContext)
- Specified by:
execute in interface com.gemstone.gemfire.cache.execute.Function- Specified by:
execute in class com.gemstone.gemfire.cache.execute.FunctionAdapter
getId
public String getId()
- Specified by:
getId in interface com.gemstone.gemfire.cache.execute.Function- Specified by:
getId in class com.gemstone.gemfire.cache.execute.FunctionAdapter
Copyright © 2011. All Rights Reserved.