Package 

Class RemoteServiceModule

    • Method Summary

      Modifier and Type Method Description
      static RemoteServiceModule.Provider ofProvider() Construct new default provider.
      <T extends ProtobufMessage> ListenableFuture<T> sendRequest(long opcode, @Nullable() ProtobufMessage request, T responseBase) Schedule sending of request to remote service, expecting a decoded response.
      ListenableFuture<ByteBuffer> sendRequest(long opcode, @Nullable() ProtobufMessage request) Schedule sending of request to remote service, expecting a raw response.
      ListenableFuture<ByteBuffer> sendRequest(long opcode, @Nullable() ByteBuffer request) Schedule sending of request, with raw body, to remote service, expecting a raw response.
      ListenableFuture<ByteBuffer> sendRequest(long opcode) Schedule sending of request, without body, to remote service, expecting a raw response.
      • Methods inherited from class com.polygamma.ogm.OriginModule

        name, sdk, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • sendRequest

         <T extends ProtobufMessage> ListenableFuture<T> sendRequest(long opcode, @Nullable() ProtobufMessage request, T responseBase)

        Schedule sending of request to remote service, expecting a decoded response.

        Parameters:
        opcode - request opcode
        request - request body or {@code null} if request has no body
        responseBase - base response body to remote response with
      • sendRequest

         ListenableFuture<ByteBuffer> sendRequest(long opcode, @Nullable() ProtobufMessage request)

        Schedule sending of request to remote service, expecting a raw response.

        Parameters:
        opcode - request opcode
        request - request body or {@code null} if request has no body
      • sendRequest

         ListenableFuture<ByteBuffer> sendRequest(long opcode, @Nullable() ByteBuffer request)

        Schedule sending of request, with raw body, to remote service, expecting a raw response.

        Parameters:
        opcode - request opcode
        request - request body or {@code null} if request has no body
      • sendRequest

         ListenableFuture<ByteBuffer> sendRequest(long opcode)

        Schedule sending of request, without body, to remote service, expecting a raw response.

        Parameters:
        opcode - request opcode