Class RelayableMessageGuard

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler

    public class RelayableMessageGuard
    extends SimpleChannelOutboundHandler<RelayableMessage>
    This handler ensures that RelayableMessages do not infinitely circulate in the network. It increments the hop counter of each outgoing message. If the limit of hops is reached, the message is discarded. Otherwise the message can pass.