org.terracotta.modules.ehcache.store.bulkload
Class BulkLoadShutdownHook
java.lang.Object
org.terracotta.modules.ehcache.store.bulkload.BulkLoadShutdownHook
- All Implemented Interfaces:
- Runnable
public class BulkLoadShutdownHook
- extends Object
- implements Runnable
- Author:
- Abhishek Sanoujam
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BulkLoadShutdownHook
public BulkLoadShutdownHook(org.terracotta.toolkit.internal.ToolkitInternal toolkit)
init
public void init()
run
public void run()
- Specified by:
run in interface Runnable
registerCache
public void registerCache(BulkLoadToolkitCache cache)
- Registers the cache for shutdown hook. When the node shuts down, if the cache is in incoherent mode, it will set
the cache back to coherent mode. Setting the node back to coherent mode will flush any changes that were made while
in incoherent mode.
unregisterCache
public void unregisterCache(org.terracotta.toolkit.cache.ToolkitCache cache)
- Unregisters the cache from shutdown hook.
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.