@Contract
public interface BackingStoreFactory
The createBackingStore(env)
method is called typically during
container creation time. A store instance is typically used to store state
for a single container.
Any runtime exception thrown from createBackingStore and createBatchBackingStore method will cause the container to use a default persistence-type (typically no replication) and a log message will be logged at WARNING level.
Modifier and Type | Method and Description |
---|---|
<K extends Serializable,V extends Serializable> |
createBackingStore(BackingStoreConfiguration<K,V> conf)
This method is called to create a BackingStore.
|
BackingStoreTransaction |
createBackingStoreTransaction() |
<K extends Serializable,V extends Serializable> BackingStore<K,V> createBackingStore(BackingStoreConfiguration<K,V> conf) throws BackingStoreException
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.
conf
- The BackingStoreConfigurationBackingStoreException
- If the store could not be createdBackingStoreTransaction createBackingStoreTransaction()
Copyright © 2016 Oracle Corporation. All rights reserved.