RPCHandler(vertx: Vertx, messageSender: Consumer<Bytes>, terminationFn: Runnable, objectMapper: ObjectMapper, logger: LoggerProvider)
Makes RPC requests over a connection
vertx
- The vertx instance to queue requests with
messageSender
- sends the request to the node
terminationFn
- closes the connection
objectMapper
- the objectMapper to serialize and deserialize message request and response bodies