private boolean isInTransit(Response response){
  Type type=response.getType();
  boolean acked=response.isAcknowledged();
  boolean timeout=response.isTimedOut();
  boolean result=type == Type.CON && !acked && !timeout;
  return result;
}

private boolean isInTransit ( Response response ) { Type type = response . getType ( ) ; boolean acked = response . isAcknowledged ( ) ; boolean timeout = response . isTimedOut ( ) ; boolean result = type == Type . CON && ! acked && ! timeout ; return result ; }
returns true if the specified response is still in transit . a response is in transit if it has not yet been acknowledged , rejected or its current transmission has not yet timed out .
