Class ConnectivityParameters


  • public final class ConnectivityParameters
    extends Object
    Parameters that determine how the connectivity check will be performed.
    • Constructor Detail

      • ConnectivityParameters

        public ConnectivityParameters()
    • Method Detail

      • source

        public ConnectivitySource source()
        Get the source property: The source of the connection.
        Returns:
        the source value.
      • withSource

        public ConnectivityParameters withSource​(ConnectivitySource source)
        Set the source property: The source of the connection.
        Parameters:
        source - the source value to set.
        Returns:
        the ConnectivityParameters object itself.
      • destination

        public ConnectivityDestination destination()
        Get the destination property: The destination of connection.
        Returns:
        the destination value.
      • withDestination

        public ConnectivityParameters withDestination​(ConnectivityDestination destination)
        Set the destination property: The destination of connection.
        Parameters:
        destination - the destination value to set.
        Returns:
        the ConnectivityParameters object itself.
      • protocol

        public Protocol protocol()
        Get the protocol property: Network protocol.
        Returns:
        the protocol value.
      • withProtocol

        public ConnectivityParameters withProtocol​(Protocol protocol)
        Set the protocol property: Network protocol.
        Parameters:
        protocol - the protocol value to set.
        Returns:
        the ConnectivityParameters object itself.
      • protocolConfiguration

        public ProtocolConfiguration protocolConfiguration()
        Get the protocolConfiguration property: Configuration of the protocol.
        Returns:
        the protocolConfiguration value.
      • withProtocolConfiguration

        public ConnectivityParameters withProtocolConfiguration​(ProtocolConfiguration protocolConfiguration)
        Set the protocolConfiguration property: Configuration of the protocol.
        Parameters:
        protocolConfiguration - the protocolConfiguration value to set.
        Returns:
        the ConnectivityParameters object itself.
      • preferredIpVersion

        public IpVersion preferredIpVersion()
        Get the preferredIpVersion property: Preferred IP version of the connection.
        Returns:
        the preferredIpVersion value.
      • withPreferredIpVersion

        public ConnectivityParameters withPreferredIpVersion​(IpVersion preferredIpVersion)
        Set the preferredIpVersion property: Preferred IP version of the connection.
        Parameters:
        preferredIpVersion - the preferredIpVersion value to set.
        Returns:
        the ConnectivityParameters object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.