Class TunnelKey<T>


  • public final class TunnelKey<T>
    extends java.lang.Object
    Represent for a tunnel key. The tunnel accepts packets with the tunnel key. A positive 24-bit (for Geneve, VXLAN, and LISP), 32-bit (for GRE) or 64-bit (for GRE64) number value is used for example. Open vSwitch allows "flow" as the key to set this value with matching in the flow table.
    • Constructor Summary

      Constructors 
      Constructor Description
      TunnelKey​(T value)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String strValue()
      Returns the value as a string.
      T value()
      Returns the value.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TunnelKey

        public TunnelKey​(T value)
        Default constructor.
        Parameters:
        value - value of the tunnel key
    • Method Detail

      • value

        public T value()
        Returns the value.
        Returns:
        tunnel key value
      • strValue

        public java.lang.String strValue()
        Returns the value as a string.
        Returns:
        string value
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object