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

<init>

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

Makes RPC requests over a connection

Parameters

vertx - Vertx!: The vertx instance to queue requests with

messageSender - Consumer<Bytes!>!: sends the request to the node

terminationFn - Runnable!: closes the connection

objectMapper - ObjectMapper!: the objectMapper to serialize and deserialize message request and response bodies