public class EventHubClientOptions extends Object
EventHubClient
All options default to not specified (null)| Constructor and Description |
|---|
EventHubClientOptions()
Create with all defaults
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
getOperationTimeout()
Get the operation timeout.
|
RetryPolicy |
getRetryPolicy()
Get the retry policy
|
TransportType |
getTransportType()
Get the transport type
|
EventHubClientOptions |
setOperationTimeout(Duration operationTimeout)
Set the operation timeout.
|
EventHubClientOptions |
setRetryPolicy(RetryPolicy retryPolicy)
Set the
RetryPolicy for operations |
EventHubClientOptions |
setTransportType(TransportType transportType)
Set the
TransportType for the connection to the Event Hubs service |
public EventHubClientOptions setOperationTimeout(Duration operationTimeout)
operationTimeout - new operation timeout, null to unset any previous valuepublic Duration getOperationTimeout()
public EventHubClientOptions setTransportType(TransportType transportType)
TransportType for the connection to the Event Hubs servicetransportType - new transport type, null to unset any previous valuepublic TransportType getTransportType()
TransportType or null if not setpublic EventHubClientOptions setRetryPolicy(RetryPolicy retryPolicy)
RetryPolicy for operationsretryPolicy - new retry policy, null to unset any previous valuepublic RetryPolicy getRetryPolicy()
RetryPolicy or null if not setCopyright © 2019 Microsoft Corporation. All rights reserved.