Package org.glassfish.ha.store.impl
Class NoOpBackingStoreFactory
- java.lang.Object
-
- org.glassfish.ha.store.impl.NoOpBackingStoreFactory
-
- All Implemented Interfaces:
BackingStoreFactory
@Service(name="noop") public class NoOpBackingStoreFactory extends Object implements BackingStoreFactory
- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description NoOpBackingStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K extends Serializable,V extends Serializable>
BackingStore<K,V>createBackingStore(BackingStoreConfiguration<K,V> conf)This method is called to create a BackingStore.BackingStoreTransactioncreateBackingStoreTransaction()
-
-
-
Method Detail
-
createBackingStore
public <K extends Serializable,V extends Serializable> BackingStore<K,V> createBackingStore(BackingStoreConfiguration<K,V> conf) throws BackingStoreException
Description copied from interface:BackingStoreFactoryThis method is called to create a BackingStore. This class must be thread safe.If the factory can produce a BackingStore that can handle the factors specified in the conf, then it must return a fully initialized and operational BackingStore. Else it must return null.
- Specified by:
createBackingStorein interfaceBackingStoreFactory- Parameters:
conf- The BackingStoreConfiguration- Returns:
- a BackingStore. The returned BackingStore must be thread safe.
- Throws:
BackingStoreException- If the store could not be created
-
createBackingStoreTransaction
public BackingStoreTransaction createBackingStoreTransaction()
- Specified by:
createBackingStoreTransactionin interfaceBackingStoreFactory- Returns:
-
-