public abstract class AbstractConsumerPersistenceManagerService<S extends Serializable> extends Object implements ConsumerPersistenceManager<S>
| Constructor and Description |
|---|
AbstractConsumerPersistenceManagerService() |
| Modifier and Type | Method and Description |
|---|---|
String |
createState(ConsumerState<S> state)
Create the initial state.
|
void |
destroyState(String stateId)
Destroy the state.
|
protected abstract ConsumerStateContext<S> |
get(String stateId) |
int |
getSize() |
ConsumerStateContext<S> |
loadState(String stateId)
Load the state.
|
protected abstract void |
put(String stateId,
ConsumerStateContext<S> state) |
protected abstract void |
remove(String stateId) |
protected abstract int |
size() |
void |
updateState(String stateId,
ConsumerState<S> state)
Update the state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStateTypepublic AbstractConsumerPersistenceManagerService()
protected abstract ConsumerStateContext<S> get(String stateId)
protected abstract void put(String stateId, ConsumerStateContext<S> state)
protected abstract void remove(String stateId)
protected abstract int size()
public ConsumerStateContext<S> loadState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManagerloadState in interface ConsumerPersistenceManager<S extends Serializable>stateId - the state idIllegalArgumentException - if the state id is nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validpublic String createState(ConsumerState<S> state) throws IllegalArgumentException
ConsumerPersistenceManagercreateState in interface ConsumerPersistenceManager<S extends Serializable>state - the stateIllegalArgumentException - if the portlet id is nullpublic void updateState(String stateId, ConsumerState<S> state) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManagerupdateState in interface ConsumerPersistenceManager<S extends Serializable>stateId - the state idstate - the updated stateIllegalArgumentException - if the state id is null or the values are nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validpublic void destroyState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
ConsumerPersistenceManagerdestroyState in interface ConsumerPersistenceManager<S extends Serializable>stateId - the state idIllegalArgumentException - if the state id is nullNoSuchStateException - is the specified state does not existInvalidStateIdException - if the state id is not validpublic int getSize()
Copyright © 2003-2018 GateIn. All Rights Reserved.