EventHubClientOptions Class
- java.
lang. Object - com.
microsoft. azure. eventhubs. EventHubClientOptions
- com.
public class EventHubClientOptions
Convenient container for options for creating an EventHubClient All options default to not specified (null)
Field Summary
Modifier and Type | Field and Description |
---|---|
static final Duration | SILENT_MINIMUM |
static final Duration | SILENT_OFF |
Constructor Summary
Constructor | Description |
---|---|
EventHubClientOptions() |
Create with all defaults |
Method Summary
Modifier and Type | Method and Description |
---|---|
Duration |
getMaximumSilentTime()
Gets the maximum silent time in seconds. |
Duration |
getOperationTimeout()
Get the operation timeout. |
Proxy |
getProxyConfiguration()
Gets the proxy configuration for this set of options. |
Retry |
getRetryPolicy()
Get the retry policy |
Transport |
getTransportType()
Get the transport type |
Event |
setMaximumSilentTime(Duration maximumSilentTime)
Sets the maximum silent time, in seconds. |
Event |
setOperationTimeout(Duration operationTimeout)
Set the operation timeout. |
Event |
setProxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the proxy configuration for the client options. |
Event |
setRetryPolicy(RetryPolicy retryPolicy)
Set the RetryPolicy for operations |
Event |
setTransportType(TransportType transportType)
Set the TransportType for the connection to the Event Hubs service |
Methods inherited from java.lang.Object
Field Details
SILENT_MINIMUM
public static final Duration SILENT_MINIMUM
SILENT_OFF
public static final Duration SILENT_OFF
Constructor Details
EventHubClientOptions
public EventHubClientOptions()
Create with all defaults
Method Details
getMaximumSilentTime
public Duration getMaximumSilentTime()
Gets the maximum silent time in seconds.
Returns:
getOperationTimeout
public Duration getOperationTimeout()
Get the operation timeout.
Returns:
getProxyConfiguration
public ProxyConfiguration getProxyConfiguration()
Gets the proxy configuration for this set of options.
Returns:
getRetryPolicy
getTransportType
public TransportType getTransportType()
Get the transport type
Returns:
setMaximumSilentTime
public EventHubClientOptions setMaximumSilentTime(Duration maximumSilentTime)
Sets the maximum silent time, in seconds. Use only on recommendation from the product group.
Parameters:
Returns:
setOperationTimeout
public EventHubClientOptions setOperationTimeout(Duration operationTimeout)
Set the operation timeout.
Parameters:
Returns:
setProxyConfiguration
public EventHubClientOptions setProxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the proxy configuration for the client options.
Parameters:
Returns:
setRetryPolicy
public EventHubClientOptions setRetryPolicy(RetryPolicy retryPolicy)
Set the RetryPolicy for operations
Parameters:
Returns:
setTransportType
public EventHubClientOptions setTransportType(TransportType transportType)
Set the TransportType for the connection to the Event Hubs service
Parameters:
Returns:
Applies to
Azure SDK for Java