Class EventHubClientOptions


  • public class EventHubClientOptions
    extends Object
    Convenient container for options for creating an EventHubClient All options default to not specified (null)
    • Field Detail

      • SILENT_OFF

        public static final Duration SILENT_OFF
      • SILENT_MINIMUM

        public static final Duration SILENT_MINIMUM
    • Constructor Detail

      • EventHubClientOptions

        public EventHubClientOptions()
        Create with all defaults
    • Method Detail

      • setOperationTimeout

        public EventHubClientOptions setOperationTimeout​(Duration operationTimeout)
        Set the operation timeout.
        Parameters:
        operationTimeout - new operation timeout, null to unset any previous value
        Returns:
        this options object
      • getOperationTimeout

        public Duration getOperationTimeout()
        Get the operation timeout.
        Returns:
        operation timeout or null if not set
      • setTransportType

        public EventHubClientOptions setTransportType​(TransportType transportType)
        Set the TransportType for the connection to the Event Hubs service
        Parameters:
        transportType - new transport type, null to unset any previous value
        Returns:
        this options object
      • setRetryPolicy

        public EventHubClientOptions setRetryPolicy​(RetryPolicy retryPolicy)
        Set the RetryPolicy for operations
        Parameters:
        retryPolicy - new retry policy, null to unset any previous value
        Returns:
        this options object
      • getRetryPolicy

        public RetryPolicy getRetryPolicy()
        Get the retry policy
        Returns:
        RetryPolicy or null if not set
      • setProxyConfiguration

        public EventHubClientOptions setProxyConfiguration​(ProxyConfiguration proxyConfiguration)
        Sets the proxy configuration for the client options.
        Parameters:
        proxyConfiguration - The proxy configuration to set on the options.
        Returns:
        The updated options object.
      • getProxyConfiguration

        public ProxyConfiguration getProxyConfiguration()
        Gets the proxy configuration for this set of options.
        Returns:
        Gets the proxy configuration.
      • setMaximumSilentTime

        public EventHubClientOptions setMaximumSilentTime​(Duration maximumSilentTime)
        Sets the maximum silent time, in seconds. Use only on recommendation from the product group.
        Parameters:
        maximumSilentTime - The time, or SILENT_OFF. Time must be at least SILENT_MINIMUM.
        Returns:
        The updated options object.
      • getMaximumSilentTime

        public Duration getMaximumSilentTime()
        Gets the maximum silent time in seconds.
        Returns:
        The maximum silent time, or SILENT_OFF.