- All Known Implementing Classes:
InboundGatewayReceiver, OutboundReceiver
- Enclosing class:
TunnelGateway
public static interface TunnelGateway.Receiver
Interface for receiving encrypted tunnel data. Handles delivery of encrypted messages to the next hop in the tunnel.
Method Summary
All MethodsModifier and TypeMethodDescriptionTunnel the message should be sent through.longreceiveEncrypted(byte[] encrypted) Forward encrypted data to the next hop.
Method Details
receiveEncrypted
long receiveEncrypted(byte[] encrypted) Forward encrypted data to the next hop.- Parameters:
encrypted- the encrypted data- Returns:
- message ID it was sent in, or -1 if it had to be deferred
getSendTo