Package com.oracle.coherence.client
Class StreamStreamObserver<T>
- java.lang.Object
-
- com.oracle.coherence.client.BaseFutureStreamObserver<T>
-
- com.oracle.coherence.client.StreamStreamObserver<T>
-
- Type Parameters:
T- the response type
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<T>
public class StreamStreamObserver<T> extends BaseFutureStreamObserver<T>
AStreamObserverthat collects all of its responses into aListand then completes aCompletableFuturewhen the observer completes.- Since:
- 20.06
- Author:
- Jonathan Knight 2020.09.21
-
-
Constructor Summary
Constructors Constructor Description StreamStreamObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<List<T>>future()Return theCompletableFutureassociated with thisStreamObserver.voidonCompleted()voidonNext(T value)-
Methods inherited from class com.oracle.coherence.client.BaseFutureStreamObserver
onError
-
-
-
-
Method Detail
-
future
public CompletableFuture<List<T>> future()
Description copied from class:BaseFutureStreamObserverReturn theCompletableFutureassociated with thisStreamObserver.- Specified by:
futurein classBaseFutureStreamObserver<T>- Returns:
- the
CompletableFutureassociated with thisStreamObserver
-
onNext
public void onNext(T value)
-
onCompleted
public void onCompleted()
-
-