public interface BackpressureStrategy
Modifier and Type | Interface and Description |
---|---|
static class |
BackpressureStrategy.CallbackBackpressureStrategy
A back pressure strategy that uses callbacks to notify when the client is ready or cancelled.
|
static class |
BackpressureStrategy.WaitResult
The state of the client after a call to waitForListener.
|
Modifier and Type | Method and Description |
---|---|
void |
register(FlightProducer.ServerStreamListener listener)
Set up operations to work against the given listener.
|
BackpressureStrategy.WaitResult |
waitForListener(long timeout)
Waits for the listener to be ready or cancelled up to the given timeout.
|
void register(FlightProducer.ServerStreamListener listener)
waitForListener(long)
and
OutboundStreamListener.start(VectorSchemaRoot)
listener
- The listener this strategy applies to.BackpressureStrategy.WaitResult waitForListener(long timeout)
timeout
- The timeout in milliseconds. Infinite if timeout is <= 0.Copyright © 2023 The Apache Software Foundation. All rights reserved.