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. The
RPCNetwork
maintains a list of supported RPC signatures, and dispatches requests to the corresponding adapter.- Author:
- Simon Thoresen Hult
-
Method Summary
Modifier and TypeMethodDescriptionvoid
send
(RoutingNode recipient, com.yahoo.component.Version version, byte[] payload, long timeRemaining) Performs the actual sending to the given recipient.
-
Method Details
-
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.
-