java.lang.Object
net.i2p.router.tunnel.TunnelGatewayPumper.PoisonPTG.NoOpReceiver
- All Implemented Interfaces:
TunnelGateway.Receiver
- Enclosing class:
TunnelGatewayPumper.PoisonPTG
private static class TunnelGatewayPumper.PoisonPTG.NoOpReceiverextends Object implements TunnelGateway.Receiver
No-op receiver for poison pill to avoid null pointer issues.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionTunnel the message should be sent through.longreceiveEncrypted(byte[] encrypted) Forward encrypted data to the next hop.
Constructor Details
NoOpReceiver
private NoOpReceiver()A receiver that discards the message.
Method Details
receiveEncrypted
public long receiveEncrypted(byte[] encrypted) Description copied from interface:TunnelGateway.ReceiverForward encrypted data to the next hop.- Specified by:
receiveEncryptedin interfaceTunnelGateway.Receiver- Parameters:
encrypted- the encrypted data- Returns:
- message ID it was sent in, or -1 if it had to be deferred
getSendTo
Description copied from interface:TunnelGateway.ReceiverTunnel the message should be sent through.- Specified by:
getSendToin interfaceTunnelGateway.Receiver- Returns:
- non-null