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

<init>

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

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