public class DnsLookupClientRpcModule extends AbstractXmlRpcModule<DnsLookupRequestDTO,DnsLookupResponseDTO>
| Modifier and Type | Field and Description |
|---|---|
static String |
RPC_MODULE_ID |
| Constructor and Description |
|---|
DnsLookupClientRpcModule() |
| Modifier and Type | Method and Description |
|---|---|
DnsLookupResponseDTO |
createResponseWithException(Throwable ex)
Called when the
RpcModule throws an exception while executing a request. |
CompletableFuture<DnsLookupResponseDTO> |
execute(DnsLookupRequestDTO request) |
String |
getId()
Used to route the request/responses to the appropriate module.
|
marshalRequest, marshalResponse, unmarshalRequest, unmarshalResponsepublic static final String RPC_MODULE_ID
public DnsLookupResponseDTO createResponseWithException(Throwable ex)
RpcModuleRpcModule throws an exception while executing a request.
This function should return a new RpcResponse that stores a string-based representation
of the exception that occurred and make this available via RpcResponse.getErrorMessage()
once un-marshaled.ex - the exception that occurredRpcResponse that stores the exceptionpublic String getId()
RpcModulepublic CompletableFuture<DnsLookupResponseDTO> execute(DnsLookupRequestDTO request)
Copyright © 2020. All rights reserved.