T
- type of the message@NotThreadSafe public class DataMessageServerStreamObserver<T> extends io.grpc.stub.CallStreamObserver<T>
StreamObserver
for handling raw data buffers.Constructor and Description |
---|
DataMessageServerStreamObserver(io.grpc.stub.CallStreamObserver<T> observer,
BufferRepository<T,DataBuffer> bufferRepository) |
Modifier and Type | Method and Description |
---|---|
void |
disableAutoInboundFlowControl() |
boolean |
isReady() |
void |
onCompleted() |
void |
onError(Throwable t) |
void |
onNext(DataMessage<T,DataBuffer> value)
Receives a message with data buffer from the stream.
|
void |
onNext(T value) |
void |
request(int count) |
void |
setMessageCompression(boolean enable) |
void |
setOnReadyHandler(Runnable onReadyHandler) |
public DataMessageServerStreamObserver(io.grpc.stub.CallStreamObserver<T> observer, BufferRepository<T,DataBuffer> bufferRepository)
observer
- the original observerbufferRepository
- the repository of the bufferspublic void onNext(DataMessage<T,DataBuffer> value)
value
- the value passed to the streampublic void onNext(T value)
public void onError(Throwable t)
public void onCompleted()
public boolean isReady()
isReady
in class io.grpc.stub.CallStreamObserver<T>
public void setOnReadyHandler(Runnable onReadyHandler)
setOnReadyHandler
in class io.grpc.stub.CallStreamObserver<T>
public void disableAutoInboundFlowControl()
disableAutoInboundFlowControl
in class io.grpc.stub.CallStreamObserver<T>
public void request(int count)
request
in class io.grpc.stub.CallStreamObserver<T>
public void setMessageCompression(boolean enable)
setMessageCompression
in class io.grpc.stub.CallStreamObserver<T>
Copyright © 2023. All Rights Reserved.