private QueuedRequestSender(Builder builder){
  this.messageStore=builder.messageStore;
  this.clientRegistry=builder.clientRegistry;
  this.observationRegistry=builder.observationRegistry;
  this.delegateSender=builder.delegateSender;
  this.clientStatusTracker=new ClientStatusTracker();
  this.queueModeClientRegistryListener=new QueueModeClientRegistryListener();
  clientRegistry.addListener(queueModeClientRegistryListener);
  this.queueModeObservationRegistryListener=new QueueModeObservationRegistryListener();
  observationRegistry.addListener(queueModeObservationRegistryListener);
  delegateSender.addResponseListener(createResponseListener());
}

private QueuedRequestSender ( Builder builder ) { this . messageStore = builder . messageStore ; this . clientRegistry = builder . clientRegistry ; this . observationRegistry = builder . observationRegistry ; this . delegateSender = builder . delegateSender ; this . clientStatusTracker = new ClientStatusTracker ( ) ; this . queueModeClientRegistryListener = new QueueModeClientRegistryListener ( ) ; clientRegistry . addListener ( queueModeClientRegistryListener ) ; this . queueModeObservationRegistryListener = new QueueModeObservationRegistryListener ( ) ; observationRegistry . addListener ( queueModeObservationRegistryListener ) ; delegateSender . addResponseListener ( createResponseListener ( ) ) ; }
creates a new queuerequestsender using given builder .
