Package | Description |
---|---|
net.jini.core.transaction |
These are the transaction abstraction's interfaces and classes.
|
net.jini.core.transaction.server |
These are the default transaction semantics for participant/manager interaction.
|
Modifier and Type | Method and Description |
---|---|
static Transaction.Created |
TransactionFactory.create(TransactionManager mgr,
long leaseTime)
Create a new top-level transaction.
|
Modifier and Type | Interface and Description |
---|---|
interface |
NestableTransactionManager
The interface used for managers of the two-phase commit protocol for
nestable transactions.
|
Modifier and Type | Field and Description |
---|---|
TransactionManager |
ServerTransaction.mgr
The transaction manager.
|
Modifier and Type | Method and Description |
---|---|
void |
TransactionParticipant.abort(TransactionManager mgr,
long id)
Requests that the participant roll back any changes for the specified
transaction and unlock any resources locked by the transaction.
|
void |
TransactionParticipant.commit(TransactionManager mgr,
long id)
Requests that the participant make all of its
PREPARED
changes for the specified transaction visible outside of the
transaction and unlock any resources locked by the transaction. |
int |
TransactionParticipant.prepare(TransactionManager mgr,
long id)
Requests that the participant prepare itself to commit the transaction,
and to vote on the outcome of the transaction.
|
int |
TransactionParticipant.prepareAndCommit(TransactionManager mgr,
long id)
A combination of
prepare and commit , which
can be used by the manager when there is just one participant left to
prepare and all other participants (if any) have responded with
NOTCHANGED . |
Constructor and Description |
---|
ServerTransaction(TransactionManager mgr,
long id)
Simple constructor.
|
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.