public void checkMsrpTransactionInfo(){
  if (mTransactionInfoMap != null) {
    List<MsrpTransactionInfo> msrpTransactionInfos;
synchronized (mTransactionMsgIdMapLock) {
      msrpTransactionInfos=new ArrayList<>(mTransactionInfoMap.values());
    }
    for (    MsrpTransactionInfo msrpTransactionInfo : msrpTransactionInfos) {
      long delta=System.currentTimeMillis() - msrpTransactionInfo.mTimestamp;
      if ((delta >= TRANSACTION_INFO_EXPIRY_PERIOD) || (delta < 0)) {
        if (sLogger.isActivated()) {
          sLogger.debug("Transaction info have expired (transactionId: " + msrpTransactionInfo.mTransactionId + ", msgId: "+ msrpTransactionInfo.mMsrpMsgId+ ")");
        }
        mTransactionInfoMap.remove(msrpTransactionInfo.mTransactionId);
        if (mMessageTransactionMap != null) {
          mMessageTransactionMap.remove(msrpTransactionInfo.mMsrpMsgId);
        }
      }
    }
  }
}

public void checkMsrpTransactionInfo ( ) { if ( mTransactionInfoMap != null ) { List < MsrpTransactionInfo > msrpTransactionInfos ; synchronized ( mTransactionMsgIdMapLock ) { msrpTransactionInfos = new ArrayList < > ( mTransactionInfoMap . values ( ) ) ; } for ( MsrpTransactionInfo msrpTransactionInfo : msrpTransactionInfos ) { long delta = System . currentTimeMillis ( ) - msrpTransactionInfo . mTimestamp ; if ( ( delta >= TRANSACTION_INFO_EXPIRY_PERIOD ) || ( delta < 0 ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "Transaction info have expired (transactionId: " + msrpTransactionInfo . mTransactionId + ", msgId: " + msrpTransactionInfo . mMsrpMsgId + ")" ) ; } mTransactionInfoMap . remove ( msrpTransactionInfo . mTransactionId ) ; if ( mMessageTransactionMap != null ) { mMessageTransactionMap . remove ( msrpTransactionInfo . mMsrpMsgId ) ; } } } } }
check the transactions info that have expired
