Interface Tunnel


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

      • NAME_PATTERN

        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.
        Returns:
        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.
        Parameters:
        newState - The new state of the tunnel.