All Packages Class Hierarchy This Package Previous Next Index
Class semper.txlayer.transfer.TokenBasedTransfer
java.lang.Object
|
+----semper.txlayer.transaction.Transaction
|
+----semper.txlayer.transfer.TransferTransaction
|
+----semper.txlayer.transfer.TokenBasedTransfer
- public abstract class TokenBasedTransfer
- extends TransferTransaction
- implements Serializable
This abstract class provides a basic TokenBased communication
mechanisms. Derived classes should only have to
implement processToken().
-
TokenBasedTransfer()
-
-
TokenBasedTransfer(TransactionID)
-
-
processToken(Vector)
- This is the place to code the behaviour
of this subclass protocol.
-
receive()
- This method is invoked when the preparation
is done and the transaction shall begin.
-
send()
- This method is invoked when the preparation
is done and the transaction shall begin.
TokenBasedTransfer
public TokenBasedTransfer()
TokenBasedTransfer
public TokenBasedTransfer(TransactionID tid)
send
protected void send() throws TXContextCommException
- This method is invoked when the preparation
is done and the transaction shall begin.
In contradiction to the superclass, this is
not the place to enter code. Use processToken(_).
- Throws: TXContextCommException
- When comm problems occur.
- Overrides:
- send in class TransferTransaction
receive
protected void receive() throws TXContextCommException
- This method is invoked when the preparation
is done and the transaction shall begin.
In contradiction to the superclass, this is
not the place to enter code. Use processToken(_).
- Throws: TXContextCommException
- When comm problems occur.
- Overrides:
- receive in class TransferTransaction
processToken
protected abstract Vector processToken(Vector v)
- This is the place to code the behaviour
of this subclass protocol.
To start the protocol, this method is
with a null-reference as parameter.
Similarly, the end is indicated by returning
a null-reference.
The extension programmer herself has to
maintain states and all those things
needed in the protocol automata.
All Packages Class Hierarchy This Package Previous Next Index