Package com.yahoo.messagebus.network.rpc
Interface RPCSendAdapter
-
public interface RPCSendAdapter
This interface defines the necessary methods to process incoming and send outgoing RPC requests. TheRPCNetwork
maintains a list of supported RPC signatures, and dispatches requests to the corresponding adapter.- Author:
- Simon Thoresen Hult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
attach(RPCNetwork net)
Attaches this adapter to the given network.void
send(RoutingNode recipient, com.yahoo.component.Version version, byte[] payload, long timeRemaining)
Performs the actual sending to the given recipient.
-
-
-
Method Detail
-
attach
void attach(RPCNetwork net)
Attaches this adapter to the given network.- Parameters:
net
- The network to attach to.
-
send
void send(RoutingNode recipient, com.yahoo.component.Version version, byte[] payload, long timeRemaining)
Performs the actual sending to the given recipient.- Parameters:
recipient
- The recipient to send to.version
- The version for which the payload is serialized.payload
- The already serialized payload of the message to send.timeRemaining
- The time remaining until the message expires.
-
-