Package org.apache.dubbo.common.stream
Interface StreamObserver<T>
- Type Parameters:
T- type of message
public interface StreamObserver<T>
StreamObserver is a common streaming API. It is an observer for receiving messages.
Implementations are NOT required to be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonCompletedvoidonErrorvoidonNext
-
Method Details
-
onNext
onNext- Parameters:
data- to process
-
onError
onError- Parameters:
throwable- error
-
onCompleted
void onCompleted()onCompleted
-