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.voidvoidvoidonNext(com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest request)
-
Constructor Details
-
AsyncWrapper
Create an async wrapper.- Parameters:
executor- theExecutorto 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:
onNextin interfaceio.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
-
onError
- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
-
onCompleted
public void onCompleted()- Specified by:
onCompletedin interfaceio.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
-