public SIPServerTransaction createServerTransaction(MessageChannel encapsulatedMessageChannel){
  if (unlimitedServerTransactionTableSize) {
    return new SIPServerTransactionImpl(this,encapsulatedMessageChannel);
  }
 else {
    float threshold=((float)(serverTransactionTable.size() - serverTransactionTableLowaterMark)) / ((float)(serverTransactionTableHighwaterMark - serverTransactionTableLowaterMark));
    boolean decision=Math.random() > 1.0 - threshold;
    if (decision) {
      return null;
    }
 else {
      return new SIPServerTransactionImpl(this,encapsulatedMessageChannel);
    }
  }
}

public SIPServerTransaction createServerTransaction ( MessageChannel encapsulatedMessageChannel ) { if ( unlimitedServerTransactionTableSize ) { return new SIPServerTransactionImpl ( this , encapsulatedMessageChannel ) ; } else { float threshold = ( ( float ) ( serverTransactionTable . size ( ) - serverTransactionTableLowaterMark ) ) / ( ( float ) ( serverTransactionTableHighwaterMark - serverTransactionTableLowaterMark ) ) ; boolean decision = Math . random ( ) > 1.0 - threshold ; if ( decision ) { return null ; } else { return new SIPServerTransactionImpl ( this , encapsulatedMessageChannel ) ; } } }
creates a server transaction that encapsulates a messagechannel . useful for implementations that want to subclass the standard
