public class PollerClientRpcModule extends AbstractXmlRpcModule<PollerRequestDTO,PollerResponseDTO>
| Modifier and Type | Field and Description |
|---|---|
static String |
RPC_MODULE_ID |
| Constructor and Description |
|---|
PollerClientRpcModule() |
| Modifier and Type | Method and Description |
|---|---|
PollerResponseDTO |
createResponseWithException(Throwable ex)
Called when the
RpcModule throws an exception while executing a request. |
CompletableFuture<PollerResponseDTO> |
execute(PollerRequestDTO request) |
String |
getId()
Used to route the request/responses to the appropriate module.
|
void |
setExecutor(Executor executor) |
void |
setServiceMonitorRegistry(ServiceMonitorRegistry serviceMonitorRegistry) |
marshalRequest, marshalResponse, unmarshalRequest, unmarshalResponsepublic static final String RPC_MODULE_ID
public String getId()
RpcModulepublic CompletableFuture<PollerResponseDTO> execute(PollerRequestDTO request)
public void setServiceMonitorRegistry(ServiceMonitorRegistry serviceMonitorRegistry)
public void setExecutor(Executor executor)
public PollerResponseDTO 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 exceptionCopyright © 2020. All rights reserved.