Interface DiscoverySelector

    • Method Detail

      • toIdentifier

        @API(status=MAINTAINED,
             since="1.13.3")
        default java.util.Optional<DiscoverySelectorIdentifier> toIdentifier()
        Return the identifier of this selector.

        The returned identifier must be parsable by a corresponding DiscoverySelectorIdentifierParser.

        The default implementation returns Optional.empty(). Can be overridden by concrete implementations.

        Returns:
        an Optional containing the identifier of this selector; never null but potentially empty if the selector does not support identifiers
        Since:
        1.11