-
public class RemoteServiceModule extends OriginModule
Remote network service access module.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRemoteServiceModule.ProviderRemote network service module provider.
-
Method Summary
Modifier and Type Method Description static RemoteServiceModule.ProviderofProvider()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. -
-
Method Detail
-
ofProvider
static RemoteServiceModule.Provider ofProvider()
Construct new default provider.
-
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.
-
sendRequest
ListenableFuture<ByteBuffer> sendRequest(long opcode, @Nullable() ProtobufMessage request)
Schedule sending of request to remote service, expecting a raw response.
- Parameters:
opcode- request opcoderequest- 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 opcoderequest- 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
-
-
-
-