public abstract class StoreFactory<T extends ChatStore>
extends java.lang.Object
ChatStore implementations that preferably can support transactions.| Modifier and Type | Class and Description |
|---|---|
static class |
StoreFactory.ChatStoreFactory<T extends ChatStore>
Store factory class to build non generic persistance store objects.
|
| Constructor and Description |
|---|
StoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
build(StoreCallback<T> callback)
Build
ChatStore implementation, preferably one that can support transactions. |
void |
execute(StoreTransaction<T> transaction)
Execute store transaction based on provided
ChatStore implementation. |
public final void execute(StoreTransaction<T> transaction)
ChatStore implementation. Every transaction should begin with ChatStore.beginTransaction() and end with ChatStore.endTransaction()transaction - Store transaction based on provided ChatStore implementation.protected abstract void build(StoreCallback<T> callback)
ChatStore implementation, preferably one that can support transactions.callback - Callback to provide store implementation asynchronously.