org.lastbamboo.common.offer.answer
Interface OfferAnswerTransactionListener


public interface OfferAnswerTransactionListener

Interface for "transaction user" (TU) classes wishing to listen for transaction events.


Method Summary
 void onTransactionFailed(OfferAnswerMessage message)
          Called when the transaction failed with an error response, a timeout, or for any other reason.
 void onTransactionSucceeded(OfferAnswerMessage message)
          Called when the transaction completed normally with a 200 OK response.
 

Method Detail

onTransactionSucceeded

void onTransactionSucceeded(OfferAnswerMessage message)
Called when the transaction completed normally with a 200 OK response.

Parameters:
message - The message that transitioned the transaction to a successful state.

onTransactionFailed

void onTransactionFailed(OfferAnswerMessage message)
Called when the transaction failed with an error response, a timeout, or for any other reason. This is called really when we receive anything but a 200 OK response.

Parameters:
message - The message that transitioned the transaction to a failed state.


Copyright © 2013 LittleShoot. All Rights Reserved.