T - the type of messagepublic class FlowControlledReplyChannelWriter<T> extends Object implements FlowControl
FlowControl implementation that on request(long) retrieves messages from the buffer. These are in turn send via a ReplyChannel.| Constructor and Description |
|---|
FlowControlledReplyChannelWriter(DisposableReadonlyBuffer<T> source,
ReplyChannel<T> destination)
Instantiates this flow control with the given
DisposableReadonlyBuffer as source, and a ReplyChannel as the destination. |
FlowControlledReplyChannelWriter(List<? extends DisposableReadonlyBuffer<T>> sources,
ReplyChannel<T> destination)
Instantiates this flow control with given
buffers as sources, and ReplyChannel as the destination. |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels response sending.
|
void |
request(long requested)
Requests the
requested amount of responses to be sent. |
public FlowControlledReplyChannelWriter(List<? extends DisposableReadonlyBuffer<T>> sources, ReplyChannel<T> destination)
buffers as sources, and ReplyChannel as the destination. Buffers will be organized in a round-robin
fashion.sources - DisposableReadonlyBuffers to read messages fromdestination - ReplyChannel to write messages toRoundRobinMultiReadonlyBufferpublic FlowControlledReplyChannelWriter(DisposableReadonlyBuffer<T> source, ReplyChannel<T> destination)
DisposableReadonlyBuffer as source, and a ReplyChannel as the destination.source - DisposableReadonlyBuffer to read messages fromdestination - ReplyChannel to write messages topublic void request(long requested)
FlowControlrequested amount of responses to be sent.request in interface FlowControlrequested - number of responses to be sentpublic void cancel()
FlowControlcancel in interface FlowControlCopyright © 2020–2023 AxonIQ BV. All rights reserved.