it.list.jft.event
Interface TransactionListener

All Superinterfaces:
Listener

public interface TransactionListener
extends Listener

Interface to be implemented in order to handle the Transaction Lifecycle.

This interface is bound to transactions created by Context.makeTransaction().
It may be retrieved by CommunicationLifeCycle.getListener().


Method Summary
 void onTransactionQuery(TransactionQueryEvent event)
          Called when the server-answer to the Transaction.query() is available.
 void onTransactionSend(TransactionSendEvent event)
          Called when the server-answer to the Transaction.send() is available.
 

Method Detail

onTransactionSend

void onTransactionSend(TransactionSendEvent event)
Called when the server-answer to the Transaction.send() is available.

Depending on the server result (that cannot never be equal to Event.RESULT_OK) the transaction status changes to:

If the current transaction status is TransactionEvent.RESULT_FLYING then the server can accept calls to Transaction.query() otherwise it is a good practice to release the transaction associated to the event parameter.

Parameters:
event - the server-answer to the Transaction.send()

onTransactionQuery

void onTransactionQuery(TransactionQueryEvent event)
Called when the server-answer to the Transaction.query() is available.

Depending on the server result (that cannot never be equal to Event.RESULT_OK) the transaction status changes to:

If the current transaction status is TransactionEvent.RESULT_FLYING then the server can accept other calls to Transaction.query() otherwise it is a good practice to release the transaction associated to the event parameter.

Parameters:
event - the server-answer to the Transaction.query()


Submit a bug or feature to FT\API Programming Support<\font>