public void checkDeliveryTime(Message message) throws JMSException {
  long creation=message.getJMSTimestamp();
  long min=System.currentTimeMillis() - (offline.max + online.min) * (BROKER_RESTART > 0 ? 4 : 1);
  if (false && min > creation) {
    SimpleDateFormat df=new SimpleDateFormat("HH:mm:ss.SSS");
    exit("" + this + ".checkDeliveryTime failed. Message time: "+ df.format(new Date(creation))+ ", min: "+ df.format(new Date(min))+ "\r\n"+ message);
  }
}

public void checkDeliveryTime ( Message message ) throws JMSException { long creation = message . getJMSTimestamp ( ) ; long min = System . currentTimeMillis ( ) - ( offline . max + online . min ) * ( BROKER_RESTART > 0 ? 4 : 1 ) ; if ( false && min > creation ) { SimpleDateFormat df = new SimpleDateFormat ( "HH:mm:ss.SSS" ) ; exit ( "" + this + ".checkDeliveryTime failed. Message time: " + df . format ( new Date ( creation ) ) + ", min: " + df . format ( new Date ( min ) ) + "\r\n" + message ) ; } }
checks if the message was not delivered fast enough .
