public class SingletonIdentifiedStateContainer extends Object implements IdentifiedStateContainer
| 构造器和说明 |
|---|
SingletonIdentifiedStateContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
<S extends IdentifiedState<ID>,ID extends Serializable> |
loadStateAndLock(ID id,
Class<? extends S> stateClass) |
<S extends IdentifiedState<ID>,ID extends Serializable> |
loadStateAndLock(ID id,
Class<? extends S> stateClass,
long timeoutInMS) |
<S extends IdentifiedState<ID>,ID extends Serializable> |
newStateAndLock(Class<? extends S> stateClass) |
<S extends IdentifiedState<ID>,ID extends Serializable> |
newStateAndLock(Class<? extends S> stateClass,
long timeout) |
void |
release(Serializable id) |
public <S extends IdentifiedState<ID>,ID extends Serializable> S newStateAndLock(Class<? extends S> stateClass)
newStateAndLock 在接口中 IdentifiedStateContainerpublic <S extends IdentifiedState<ID>,ID extends Serializable> S newStateAndLock(Class<? extends S> stateClass, long timeout)
newStateAndLock 在接口中 IdentifiedStateContainerpublic <S extends IdentifiedState<ID>,ID extends Serializable> S loadStateAndLock(ID id, Class<? extends S> stateClass) throws IdentifiedStateIsLockingException
public <S extends IdentifiedState<ID>,ID extends Serializable> S loadStateAndLock(ID id, Class<? extends S> stateClass, long timeoutInMS) throws IdentifiedStateIsLockingException
public void release(Serializable id)
release 在接口中 IdentifiedStateContainerCopyright © 2020. All rights reserved.