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 -
Method Summary
Modifier and TypeMethodDescription<K extends Serializable,V extends Serializable>
BackingStore<K,V> createBackingStore(BackingStoreConfiguration<K, V> conf) This method is called to create a BackingStore.
-
Constructor Details
-
NoOpBackingStoreFactory
public NoOpBackingStoreFactory()
-
-
Method Details
-
createBackingStore
public <K extends Serializable,V extends Serializable> BackingStore<K,V> createBackingStore(BackingStoreConfiguration<K, V> conf) throws BackingStoreExceptionDescription 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
- Specified by:
createBackingStoreTransactionin interfaceBackingStoreFactory- Returns:
-