tuweni / org.apache.tuweni.scuttlebutt.rpc.mux / RPCHandler / <init>

<init>

RPCHandler(vertx: Vertx, messageSender: Consumer<Bytes>, terminationFn: Runnable, objectMapper: ObjectMapper, logger: LoggerProvider)

Makes RPC requests over a connection

Parameters

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

logger -