|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.TransactionContextFactory.Participant
protected class TransactionContextFactory.Participant
Provides a durable transaction participant.
| Constructor Summary | |
|---|---|
TransactionContextFactory.Participant()
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
void |
abort(Transaction txn)
Tells the participant to abort its involvement with the given transaction. |
void |
commit(Transaction txn)
Tells the participant to commit its state associated with the given transaction. |
String |
getTypeName()
Returns the fully qualified type name of the participant. |
boolean |
prepare(Transaction txn)
Tells the participant to prepare for commiting its state associated with the given transaction. |
void |
prepareAndCommit(Transaction txn)
Tells the participant to both prepare and commit its state associated with the given transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionContextFactory.Participant()
| Method Detail |
|---|
public boolean prepare(Transaction txn)
throws Exception
boolean
flag stating whether the prepared state is read-only, meaning that no
external state is modified by this participant. If this method
returns true, then neither commit nor abort
will be called.
If this method throws an exception, then the preparation failed, and the transaction will be aborted. If this method completes successfully, then the participant is required to be able to commit the transaction without failure.
prepare in interface TransactionParticipanttxn - the Transaction object
Exception - if there are any failures in preparing
IllegalStateException - if this participant has already been
prepared, committed, or aborted, or
if this participant is not participating
in the given transactionpublic void commit(Transaction txn)
commit in interface TransactionParticipanttxn - the Transaction object
public void prepareAndCommit(Transaction txn)
throws Exception
prepareAndCommit in interface TransactionParticipanttxn - the Transaction object
Exception - if there are any failures in preparing
IllegalStateException - if this participant has already been
prepared, committed, or aborted, or
if this participant is not participating
in the given transactionpublic void abort(Transaction txn)
abort in interface TransactionParticipanttxn - the Transaction objectpublic String getTypeName()
Service, this
will typically be the Service's type name.
getTypeName in interface TransactionParticipant
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||