public class MemcachedStateInterface extends Object implements StateInterface
| Constructor and Description |
|---|
MemcachedStateInterface(String host,
int port)
Initialize a memcached state interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAll()
Flush all keys in the state implementation
|
void |
done()
Notify state implementation no further processing will occur
|
void |
initialize()
Perform any setup required to read and write state
|
<T> StateCursor<T> |
newCursor(Class<T> stateClass,
boolean transaction)
Allocate new state cursor
|
public MemcachedStateInterface(String host, int port)
host - Hostname of memcached instanceport - Port of memcached instancepublic <T> StateCursor<T> newCursor(Class<T> stateClass, boolean transaction) throws StateException
newCursor in interface StateInterfaceT - Class used in state storagestateClass - Class used in state storagetransaction - If true, allocate cursor as a transactionStateException - StateExceptionpublic void done()
done in interface StateInterfacepublic void deleteAll()
throws StateException
deleteAll in interface StateInterfaceStateException - StateExceptionpublic void initialize()
throws StateException
initialize in interface StateInterfaceStateException - StateExceptionCopyright © 2022. All rights reserved.