org.siprop.v2.stack.sip.transaction
Interface TransactionEntry

All Known Implementing Classes:
InviteClientTransaction, InviteServerTransaction, NonInviteClientTransaction, NonInviteServerTransaction

public interface TransactionEntry

This interface is base of Transaction.

Author:
masaxmasa

Method Summary
 void doProcess(Context context)
          Process transaction, if need.
 void fireTimer()
          The timer is expired, then start expired process
 TransactionController getParentTransaction()
          Get parent Transaction object of this entry
 TransactionInfo getTransactionInfo()
          get TransactionInfo.
 TransactionState getTransactionState()
          Get current transaction status
 TransactionType getTransactionType()
          Get type of transaction
 boolean isTimerExpired(long currentTime)
          Check the timer is expired or not.
 void onError()
          An error is happend, then start error handling process
 void setTransactionInfo(TransactionInfo transactionInfo)
          set TransactionInfo.
 

Method Detail

doProcess

void doProcess(Context context)
Process transaction, if need.

Parameters:
context -

getTransactionState

TransactionState getTransactionState()
Get current transaction status

Returns:
current transaction status

isTimerExpired

boolean isTimerExpired(long currentTime)
Check the timer is expired or not.

Parameters:
currentTime - Current Time (msec)
Returns:
true: The timer is expired, false: The timer isn't expired

fireTimer

void fireTimer()
The timer is expired, then start expired process


onError

void onError()
An error is happend, then start error handling process


getParentTransaction

TransactionController getParentTransaction()
Get parent Transaction object of this entry


getTransactionType

TransactionType getTransactionType()
Get type of transaction


setTransactionInfo

void setTransactionInfo(TransactionInfo transactionInfo)
set TransactionInfo.

Parameters:
transactionInfo -

getTransactionInfo

TransactionInfo getTransactionInfo()
get TransactionInfo.

Returns:
transaction information