public void addOutOfContextMessage(ConsensusMessage m){
  outOfContextLock.lock();
  if (m.getType() == MessageFactory.PROPOSE) {
    Logger.println("(ExecutionManager.addOutOfContextMessage) adding " + m);
    outOfContextProposes.put(m.getNumber(),m);
  }
 else {
    List<ConsensusMessage> messages=outOfContext.get(m.getNumber());
    if (messages == null) {
      messages=new LinkedList<ConsensusMessage>();
      outOfContext.put(m.getNumber(),messages);
    }
    Logger.println("(ExecutionManager.addOutOfContextMessage) adding " + m);
    messages.add(m);
  }
  outOfContextLock.unlock();
}

public void addOutOfContextMessage ( ConsensusMessage m ) { outOfContextLock . lock ( ) ; if ( m . getType ( ) == MessageFactory . PROPOSE ) { Logger . println ( "(ExecutionManager.addOutOfContextMessage) adding " + m ) ; outOfContextProposes . put ( m . getNumber ( ) , m ) ; } else { List < ConsensusMessage > messages = outOfContext . get ( m . getNumber ( ) ) ; if ( messages == null ) { messages = new LinkedList < ConsensusMessage > ( ) ; outOfContext . put ( m . getNumber ( ) , messages ) ; } Logger . println ( "(ExecutionManager.addOutOfContextMessage) adding " + m ) ; messages . add ( m ) ; } outOfContextLock . unlock ( ) ; }
stores a message established as being out of context ( a message that doesn ' t belong to current executing consensus ) .
