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 |
---|---|
void |
Transaction.abort()
Abort the transaction.
|
void |
Transaction.abort(long waitFor)
Abort the transaction, waiting for participants to be notified of
the decision.
|
void |
Transaction.commit()
Commit the transaction.
|
void |
Transaction.commit(long waitFor)
Commit the transaction, waiting for participants to be notified of
the decision.
|
NestableTransaction.Created |
NestableTransaction.create(long leaseTime)
Create a new nested transaction, with the current transaction as
parent, managed by the same transaction manager as the current
transaction.
|
NestableTransaction.Created |
NestableTransaction.create(NestableTransactionManager mgr,
long leaseTime)
Create a new nested transaction, with the current transaction as
parent, managed by the given transaction manager.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerTransaction.abort() |
void |
TransactionManager.abort(long id)
Abort the transaction.
|
void |
ServerTransaction.abort(long waitFor) |
void |
TransactionManager.abort(long id,
long waitFor)
Abort the transaction, waiting for participants to be notified of
the decision.
|
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 |
ServerTransaction.commit() |
void |
TransactionManager.commit(long id)
Commit the transaction.
|
void |
ServerTransaction.commit(long waitFor) |
void |
TransactionManager.commit(long id,
long waitFor)
Commit the transaction, waiting for participants to be notified of
the decision.
|
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. |
NestableTransaction.Created |
NestableServerTransaction.create(long leaseTime) |
NestableTransaction.Created |
NestableServerTransaction.create(NestableTransactionManager mgr,
long leaseTime) |
TransactionManager.Created |
NestableTransactionManager.create(NestableTransactionManager parentMgr,
long parentID,
long lease)
Begin a nested transaction, with the specified transaction as parent.
|
int |
ServerTransaction.getState()
Returns the current state of the transaction.
|
int |
TransactionManager.getState(long id)
Returns the current state of the given transaction.
|
void |
TransactionManager.join(long id,
TransactionParticipant part,
long crashCount)
Join a transaction that is managed by this transaction manager.
|
void |
ServerTransaction.join(TransactionParticipant part,
long crashCount)
Join 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 . |
void |
NestableTransactionManager.promote(long id,
TransactionParticipant[] parts,
long[] crashCounts,
TransactionParticipant drop)
Promote the listed participants into the specified transaction.
|
void |
NestableServerTransaction.promote(TransactionParticipant[] parts,
long[] crashCounts,
TransactionParticipant drop)
Promote the listed participants (from a subtransaction) into
this (the parent) transaction.
|
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.