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 Details

    • AsyncWrapper

      public AsyncWrapper(Executor executor, ProxyServiceChannel channel)
      Create an async wrapper.
      Parameters:
      executor - the Executor to use to submit requests
      channel - the wrapped StreamObserver
  • Method Details

    • getWrapped

      public ProxyServiceChannel getWrapped()
      Return the wrapped ProxyServiceChannel.
      Returns:
      the wrapped ProxyServiceChannel
    • onNext

      public void onNext(com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest request)
      Specified by:
      onNext in interface io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
    • onError

      public void onError(Throwable t)
      Specified by:
      onError in interface io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>
    • onCompleted

      public void onCompleted()
      Specified by:
      onCompleted in interface io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.proxy.v1.ProxyRequest>