Class PIMHelloOption


  • public class PIMHelloOption
    extends Object
    PIM HELLO option.
    • Constructor Detail

      • PIMHelloOption

        public PIMHelloOption()
        Constructs a new hello option with no fields set.
      • PIMHelloOption

        public PIMHelloOption​(short type)
        Set a PIM Hello option by type. The length and default value of the type will be auto filled in by default.
        Parameters:
        type - hello option type
    • Method Detail

      • setOptType

        public void setOptType​(short type)
      • getOptType

        public short getOptType()
      • setOptLength

        public void setOptLength​(short len)
      • getOptLength

        public short getOptLength()
      • setValue

        public void setValue​(ByteBuffer bb)
      • setValue

        public void setValue​(byte[] value)
      • getValue

        public byte[] getValue()
      • create

        public static PIMHelloOption create​(short type,
                                            short length,
                                            ByteBuffer value)
        Creates a new PIM Hello option with the specified values.
        Parameters:
        type - hello option type
        length - option length
        value - option value
        Returns:
        new PIM Hello option
      • createPriority

        public static PIMHelloOption createPriority​(int priority)
        Creates a new priority option.
        Parameters:
        priority - priority
        Returns:
        priority option
      • createHoldTime

        public static PIMHelloOption createHoldTime​(short holdTime)
        Creates a new hold time option.
        Parameters:
        holdTime - hold time
        Returns:
        hold time option
      • createGenID

        public static PIMHelloOption createGenID​(int genId)
        Creates a new generation ID option with a particular generation ID.
        Parameters:
        genId - generation ID value
        Returns:
        generation ID option
      • createPruneDelay

        public static PIMHelloOption createPruneDelay​(short propagationDelay,
                                                      short overrideInterval)
        Creates a new LAN Prune Delay option.
        Parameters:
        propagationDelay - prune delay
        overrideInterval - override interval
        Returns:
        prune delay option
      • serialize

        public byte[] serialize()