SEND - The type of message the control tunnel will be able to send.RECEIVE - The expected response the control tunnel expects to receive.public class ControlTunnel.CustomTunnel<SEND,RECEIVE> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
send(RpcOutcomeListener<RECEIVE> listener,
SEND messageToSend,
ByteBuf... dataBodies)
Send a message using a custom listener.
|
ControlTunnel.CustomFuture<RECEIVE> |
send(SEND messageToSend,
ByteBuf... dataBodies)
Send a message and receive a future for monitoring the outcome.
|
public ControlTunnel.CustomFuture<RECEIVE> send(SEND messageToSend, ByteBuf... dataBodies)
messageToSend - The structured message to send.dataBodies - One or more optional unstructured messages to append to the structure message.public void send(RpcOutcomeListener<RECEIVE> listener, SEND messageToSend, ByteBuf... dataBodies)
listener - The listener to inform of the outcome of the sent message.messageToSend - The structured message to send.dataBodies - One or more optional unstructured messages to append to the structure message.Copyright © 2017 The Apache Software Foundation. All rights reserved.