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 EventProcessorHostbuild()After setting all desired optional values, call this method to build an EventProcessorHost instance.EventProcessorHost.EventProcessorHostBuilder.OptionalStepsetExecutor(ScheduledExecutorService executor)Event Processor Host runs tasks on the supplied threadpool, or creates an internal one.EventProcessorHost.EventProcessorHostBuilder.OptionalStepsetOperationTimeout(Duration operationTimeout)The timeout for Event Hubs operations.EventProcessorHost.EventProcessorHostBuilder.OptionalStepsetRetryPolicy(RetryPolicy retryPolicy)RetryPolicyfor Event Hubs operations.EventProcessorHost.EventProcessorHostBuilder.OptionalStepsetTransportType(TransportType transportType)TransportTypefor 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)
RetryPolicyfor 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)
TransportTypefor 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
-
-