Package org.apache.dubbo.remoting.http12
Interface FlowControlStreamObserver<T>
- All Superinterfaces:
StreamObserver<T>
- All Known Implementing Classes:
Http2ServerChannelObserver
-
Method Summary
Modifier and TypeMethodDescriptionvoidSwaps to manual flow control where no message will be delivered toStreamObserver.onNext(Object)unless it isrequest()ed.booleanvoidrequest(int count) Requests the peer to producecountmore messages to be delivered to the 'inbound'StreamObserver.Methods inherited from interface org.apache.dubbo.common.stream.StreamObserver
onCompleted, onError, onNext
-
Method Details
-
request
void request(int count) Requests the peer to producecountmore messages to be delivered to the 'inbound'StreamObserver.This method is safe to call from multiple threads without external synchronization.
- Parameters:
count- more messages
-
isAutoRequestN
boolean isAutoRequestN() -
disableAutoFlowControl
void disableAutoFlowControl()Swaps to manual flow control where no message will be delivered toStreamObserver.onNext(Object)unless it isrequest()ed. Sincerequest()may not be called before the call is started, a number of initial requests may be specified.
-