public abstract class TSState extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TSState.StateActive |
static class |
TSState.StateClosed |
static class |
TSState.StateCommitRollingBack |
static class |
TSState.StateCommitting |
static class |
TSState.StateMarkedRollback
A kind of sub-state of Active, we go here from Active when something
happens asynchronously that marks the current transaction as rolledback
but the user hasn't yet called commit or rollback.
|
static class |
TSState.StateNew |
static class |
TSState.StateRollingBack |
static class |
TSState.TSStorage
Store for re-using state objects (stored in a TransactedSessionImpl)
|
| Constructor and Description |
|---|
TSState(TransactedSessionImpl parentSession) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowOperation(BaseTransactedSessionImpl.AllowedOperation op) |
void |
doCommit() |
void |
doRollback() |
TSState.TSStorage |
getStateCache() |
public TSState(TransactedSessionImpl parentSession)
public TSState.TSStorage getStateCache()
public void allowOperation(BaseTransactedSessionImpl.AllowedOperation op) throws InvalidOperationException
InvalidOperationExceptionpublic void doCommit()
throws JCSMPException
JCSMPExceptionpublic void doRollback()
throws JCSMPException
JCSMPExceptionCopyright 2004-2019 Solace Corporation. All rights reserved.