Class ProxyServiceChannel.AsyncWrapper
java.lang.Object
com.oracle.coherence.grpc.proxy.common.ProxyServiceChannel.AsyncWrapper
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
- Enclosing class:
ProxyServiceChannel
public static class ProxyServiceChannel.AsyncWrapper
extends Object
implements io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
An async wrapper around a
StreamObserver
.-
Constructor Summary
ConstructorsConstructorDescriptionAsyncWrapper
(Executor executor, ProxyServiceChannel channel) Create an async wrapper. -
Method Summary
Modifier and TypeMethodDescriptionReturn the wrappedProxyServiceChannel
.void
void
void
onNext
(com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest request)
-
Constructor Details
-
AsyncWrapper
Create an async wrapper.- Parameters:
executor
- theExecutor
to use to submit requestschannel
- the wrappedStreamObserver
-
-
Method Details
-
getWrapped
Return the wrappedProxyServiceChannel
.- Returns:
- the wrapped
ProxyServiceChannel
-
onNext
public void onNext(com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest request) - Specified by:
onNext
in interfaceio.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
-
onError
- Specified by:
onError
in interfaceio.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
-
onCompleted
public void onCompleted()- Specified by:
onCompleted
in interfaceio.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
-