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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpBackingStoreFactory
public NoOpBackingStoreFactory()
createBackingStore
public <K extends Serializable,V extends Serializable> BackingStore<K,V> createBackingStore(BackingStoreConfiguration<K,V> conf)
throws BackingStoreException
- Description copied from interface:
BackingStoreFactory
- This 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:
createBackingStore in interface BackingStoreFactory
- 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:
createBackingStoreTransaction in interface BackingStoreFactory
- Returns:
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.