Package com.oracle.coherence.client
Class BaseFutureStreamObserver<T>
- java.lang.Object
-
- com.oracle.coherence.client.BaseFutureStreamObserver<T>
-
- Type Parameters:
T- the response type
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<T>
- Direct Known Subclasses:
StreamStreamObserver
public abstract class BaseFutureStreamObserver<T> extends Object implements io.grpc.stub.StreamObserver<T>
An abstractStreamObserverthat, on error, will redefine aStatusRuntimeExceptionwith a status ofStatus.UNIMPLEMENTEDas anUnsupportedOperationException.- Since:
- 14.1.1.2206.5
-
-
Constructor Summary
Constructors Constructor Description BaseFutureStreamObserver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract CompletableFuturefuture()Return theCompletableFutureassociated with thisStreamObserver.voidonError(Throwable throwable)Ifthrowableis aStatusRuntimeExceptionwith a status ofStatus.UNIMPLEMENTED, complete the future exceptionally with anUnsupportedOperationException.
-
-
-
Method Detail
-
future
public abstract CompletableFuture future()
Return theCompletableFutureassociated with thisStreamObserver.- Returns:
- the
CompletableFutureassociated with thisStreamObserver
-
onError
public void onError(Throwable throwable)
Ifthrowableis aStatusRuntimeExceptionwith a status ofStatus.UNIMPLEMENTED, complete the future exceptionally with anUnsupportedOperationException.- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<T>- Parameters:
throwable- the stream error
-
-