Interface EventProcessorHost.EventProcessorHostBuilder.OptionalStep
-
- Enclosing class:
- EventProcessorHost.EventProcessorHostBuilder
public static interface EventProcessorHost.EventProcessorHostBuilder.OptionalStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventProcessorHost
build()
After setting all desired optional values, call this method to build an EventProcessorHost instance.EventProcessorHost.EventProcessorHostBuilder.OptionalStep
setExecutor(ScheduledExecutorService executor)
Event Processor Host runs tasks on the supplied threadpool, or creates an internal one.EventProcessorHost.EventProcessorHostBuilder.OptionalStep
setOperationTimeout(Duration operationTimeout)
The timeout for Event Hubs operations.EventProcessorHost.EventProcessorHostBuilder.OptionalStep
setRetryPolicy(RetryPolicy retryPolicy)
RetryPolicy
for Event Hubs operations.EventProcessorHost.EventProcessorHostBuilder.OptionalStep
setTransportType(TransportType transportType)
TransportType
for connections to the Event Hubs service.
-
-
-
Method Detail
-
setExecutor
EventProcessorHost.EventProcessorHostBuilder.OptionalStep setExecutor(ScheduledExecutorService executor)
Event Processor Host runs tasks on the supplied threadpool, or creates an internal one.- Parameters:
executor
- threadpool, or null to use an internal one- Returns:
- interface for setting optional values
-
setRetryPolicy
EventProcessorHost.EventProcessorHostBuilder.OptionalStep setRetryPolicy(RetryPolicy retryPolicy)
RetryPolicy
for Event Hubs operations. Event Processor Host uses RetryPolicy.getDefault() if none is supplied.- Parameters:
retryPolicy
- desired retry policy- Returns:
- interface for setting optional values
-
setTransportType
EventProcessorHost.EventProcessorHostBuilder.OptionalStep setTransportType(TransportType transportType)
TransportType
for connections to the Event Hubs service. Defaults to TransportType.AMQP. The transport type can also be set in the Event Hub connection string. The value set here will override the value in the connection string, if any.- Parameters:
transportType
- desired transport type- Returns:
- interface for setting optional values
-
setOperationTimeout
EventProcessorHost.EventProcessorHostBuilder.OptionalStep setOperationTimeout(Duration operationTimeout)
The timeout for Event Hubs operations. Defaults to MessagingFactory.DefaultOperationTimeout. The timeout can also be set in the Event Hub connection string. The value set here will override the value in the connection string, if any.- Parameters:
operationTimeout
- desired timeout- Returns:
- interface for setting optional values
-
build
EventProcessorHost build()
After setting all desired optional values, call this method to build an EventProcessorHost instance.- Returns:
- new EventProcessorHost instance
-
-