public EgressPoller(Subscription subscription, int fragmentLimit) { this.fragmentAssembler = new ControlledFragmentAssembler(this); this.subscription = subscription; this.fragmentLimit = fragmentLimit; }
/// <summary> /// Create a poller for a given subscription to an archive for control response messages. /// </summary> /// <param name="subscription"> to poll for new events. </param> /// <param name="fragmentLimit"> to apply when polling. </param> private ControlResponsePoller(Subscription subscription, int fragmentLimit) { this.fragmentAssembler = new ControlledFragmentAssembler(this); this.subscription = subscription; this.fragmentLimit = fragmentLimit; }
/// <summary> /// Create a poller for a given subscription to an archive for control response messages. /// </summary> /// <param name="subscription"> to poll for new events. </param> /// <param name="errorHandler"> to call for asynchronous errors. </param> /// <param name="controlSessionId"> to filter the responses. </param> /// <param name="fragmentLimit"> to apply for each polling operation. </param> public RecordingSubscriptionDescriptorPoller(Subscription subscription, ErrorHandler errorHandler, long controlSessionId, int fragmentLimit) { this.fragmentAssembler = new ControlledFragmentAssembler(this); this.subscription = subscription; this.errorHandler = errorHandler; this.fragmentLimit = fragmentLimit; this.controlSessionId = controlSessionId; }
/// <summary> /// Create an adapter for a given subscription to an archive for recording events. /// </summary> /// <param name="controlSessionId"> to listen for associated asynchronous control events, such as errors. </param> /// <param name="controlEventListener"> listener for control events which may indicate an error on the session. </param> /// <param name="recordingSignalConsumer"> consumer of recording transition events. </param> /// <param name="subscription"> to poll for new events. </param> /// <param name="fragmentLimit"> to apply for each polling operation. </param> public RecordingSignalAdapter(long controlSessionId, IControlEventListener controlEventListener, IRecordingSignalConsumer recordingSignalConsumer, Subscription subscription, int fragmentLimit) { assembler = new ControlledFragmentAssembler(this); this.controlSessionId = controlSessionId; this.controlEventListener = controlEventListener; this.recordingSignalConsumer = recordingSignalConsumer; this.subscription = subscription; this.fragmentLimit = fragmentLimit; }
private void InitializeInstanceFields() { fragmentAssembler = new ControlledFragmentAssembler(this); }
/// <summary> /// Create a poller for a given subscription to an archive for control response messages. /// </summary> /// <param name="subscription"> to poll for new events. </param> /// <param name="fragmentLimit"> to apply when polling.</param> public ControlResponsePoller(Subscription subscription, int fragmentLimit = FRAGMENT_LIMIT) { this.fragmentAssembler = new ControlledFragmentAssembler(this); this.subscription = subscription; this.fragmentLimit = fragmentLimit; }
/// <summary> /// Create a poller for a given subscription to an archive for control response messages with a default /// fragment limit for polling as <seealso cref="FRAGMENT_LIMIT"/>. /// </summary> /// <param name="subscription"> to poll for new events. </param> public ControlResponsePoller(Subscription subscription) : this(subscription, FRAGMENT_LIMIT) { fragmentAssembler = new ControlledFragmentAssembler(this); }