com.hazelcast.core
Class AbstractMapStore<K,V>

java.lang.Object
  extended by com.hazelcast.core.AbstractMapStore<K,V>
All Implemented Interfaces:
MapLoader<K,V>, MapLoaderLifecycleSupport, MapStore<K,V>

Deprecated. as of version 1.9

public abstract class AbstractMapStore<K,V>
extends Object
implements MapLoaderLifecycleSupport, MapStore<K,V>

See Also:
MapLoaderLifecycleSupport

Constructor Summary
AbstractMapStore()
          Deprecated.  
 
Method Summary
 void destroy()
          Deprecated. Hazelcast will call this method before shutting down.
 void init(HazelcastInstance hazelcastInstance, Properties properties, String mapName)
          Deprecated. Initializes this MapLoader implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.MapStore
delete, deleteAll, store, storeAll
 
Methods inherited from interface com.hazelcast.core.MapLoader
load, loadAll, loadAllKeys
 

Constructor Detail

AbstractMapStore

public AbstractMapStore()
Deprecated. 
Method Detail

init

public void init(HazelcastInstance hazelcastInstance,
                 Properties properties,
                 String mapName)
Deprecated. 
Description copied from interface: MapLoaderLifecycleSupport
Initializes this MapLoader implementation. Hazelcast will call this method when the map is first used on the HazelcastInstance. Implementation can initialize required resources for the implementing mapLoader such as reading a config file and/or creating database connection.

Specified by:
init in interface MapLoaderLifecycleSupport
Parameters:
hazelcastInstance - HazelcastInstance of this mapLoader.
properties - Properties set for this mapStore. see MapStoreConfig
mapName - name of the map.

destroy

public void destroy()
Deprecated. 
Description copied from interface: MapLoaderLifecycleSupport
Hazelcast will call this method before shutting down. This method can be overridden to cleanup the resources held by this map loader implementation, such as closing the database connections etc.

Specified by:
destroy in interface MapLoaderLifecycleSupport


Copyright .9.4-SNAPSHOT; 2008-2011 Hazel Ltd. All Rights Reserved.