Interface Tunnel

  • public interface Tunnel
    Represents a WireGuard tunnel.
    • Field Detail


        static final java.util.regex.Pattern NAME_PATTERN
    • Method Detail

      • isNameInvalid

        static boolean isNameInvalid​(java.lang.CharSequence name)
      • getName

        java.lang.String getName()
        Get the name of the tunnel, which should always pass the !isNameInvalid test.
        The name of the tunnel.
      • onStateChange

        void onStateChange​(Tunnel.State newState)
        React to a change in state of the tunnel. Should only be directly called by Backend.
        newState - The new state of the tunnel.