summary:"Builder used to instantiate <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerClient\"></xref> and <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerAsyncClient\"></xref>."
summary:"Creates a new instance with the following defaults:\n\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxEventBufferLengthPerPartition(int)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxEventBufferLengthPerPartition(int)\"></xref> is 1500\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.transportType(com.azure.core.amqp.AmqpTransportType)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#transportType(AmqpTransportType)\"></xref> is <xref uid=\"com.azure.core.amqp.AmqpTransportType.AMQP\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AmqpTransportType#AMQP\"></xref>\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxConcurrentSendsPerPartition*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxConcurrentSendsPerPartition(int)\"></xref> is 1\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxConcurrentSends*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxConcurrentSends(int)\"></xref> is 1\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxWaitTime(java.time.Duration)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxWaitTime(Duration)\"></xref> is 30 seconds"
desc:"Creates a new instance with the following defaults:\n\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxEventBufferLengthPerPartition(int)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxEventBufferLengthPerPartition(int)\"></xref> is 1500\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.transportType(com.azure.core.amqp.AmqpTransportType)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#transportType(AmqpTransportType)\"></xref> is <xref uid=\"com.azure.core.amqp.AmqpTransportType.AMQP\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AmqpTransportType#AMQP\"></xref>\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxConcurrentSendsPerPartition*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxConcurrentSendsPerPartition(int)\"></xref> is 1\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxConcurrentSends*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxConcurrentSends(int)\"></xref> is 1\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.maxWaitTime(java.time.Duration)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#maxWaitTime(Duration)\"></xref> is 30 seconds"
desc:"Builds a new instance of the async buffered producer client."
returns:
description:"A new instance of <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerAsyncClient\"></xref>."
desc:"Builds a new instance of the buffered producer client."
returns:
description:"A new instance of <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerClient\"></xref>."
desc:"Sets the configuration store that is used during construction of the service client. If not specified, the default configuration store is used to configure the buffered producer. Use <xref uid=\"com.azure.core.util.Configuration.NONE\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Configuration#NONE\"></xref> to bypass using configuration settings during construction."
summary:"Sets the credential information given a connection string to the Event Hub instance."
parameters:
- description:"The connection string to use for connecting to the Event Hub instance. It is expected\n that the Event Hub name and the shared access key properties are contained in this connection string."
desc:"Sets the credential information given a connection string to the Event Hub instance.\n\nIf the connection string is copied from the Event Hubs namespace, it will likely not contain the name to the desired Event Hub, which is needed. In this case, the name can be added manually by adding \"EntityPath=EVENT\\_HUB\\_NAME\" to the end of the connection string. For example, \"EntityPath=telemetry-hub\".\n\nIf you have defined a shared access policy directly on the Event Hub itself, then copying the connection string from that Event Hub will result in a connection string that contains the name."
summary:"Sets the credential information given a connection string to the Event Hubs namespace and name to a specific Event Hub instance."
parameters:
- description:"The connection string to use for connecting to the Event Hubs namespace; it is\n expected that the shared access key properties are contained in this connection string, but not the Event Hub\n name."
summary:"Sets the credential information for which Event Hub instance to connect to, and how to authorize against it."
parameters:
- description:"The shared access name and key credential to use for authorization.\n Access controls may be specified by the Event Hubs namespace or the requested Event Hub,\n depending on Azure configuration."
summary:"Sets the credential information for which Event Hub instance to connect to, and how to authorize against it."
parameters:
- description:"The shared access signature credential to use for authorization.\n Access controls may be specified by the Event Hubs namespace or the requested Event Hub,\n depending on Azure configuration."
summary:"Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description:"The token credential to use for authorization. Access controls may be specified by the\n Event Hubs namespace or the requested Event Hub, depending on Azure configuration."
desc:"Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
summary:"Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description:"The fully qualified name for the Event Hubs namespace. This is likely to be\n similar to <strong>\"{your-namespace}.servicebus.windows.net\"</strong>."
- description:"The token credential to use for authorization. Access controls may be specified by the\n Event Hubs namespace or the requested Event Hub, depending on Azure configuration."
desc:"Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
summary:"Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description:"The fully qualified name for the Event Hubs namespace. This is likely to be\n similar to <strong>\"{your-namespace}.servicebus.windows.net\"</strong>."
- description:"The token credential to use for authorization. Access controls may be specified by the\n Event Hubs namespace or the requested Event Hub, depending on Azure configuration."
desc:"Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
summary:"Sets the credential information for which Event Hub instance to connect to, and how to authorize against it."
parameters:
- description:"The fully qualified name for the Event Hubs namespace. This is likely to be\n similar to <strong>\"{your-namespace}.servicebus.windows.net\"</strong>."
- description:"The token credential to use for authorization. Access controls may be specified by the\n Event Hubs namespace or the requested Event Hub, depending on Azure configuration."
desc:"Sets a custom endpoint address when connecting to the Event Hubs service. This can be useful when your network does not allow connecting to the standard Azure Event Hubs endpoint address, but does allow connecting through an intermediary. For example: https://my.custom.endpoint.com:55300.\n\nIf no port is specified, the default port for the <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.transportType(com.azure.core.amqp.AmqpTransportType)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"transport type\"></xref> is used."
summary:"Sets the fully qualified name for the Event Hubs namespace."
parameters:
- description:"The fully qualified name for the Event Hubs namespace. This is likely to be\n similar to <strong>\"{your-namespace}.servicebus.windows.net\"</strong>."
desc:"The total number of events that can be buffered for publishing at a given time for a given partition. Once this capacity is reached, more events can enqueued by calling the `enqueueEvent` methods on either <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerClient\"></xref> or <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerAsyncClient\"></xref>. The default limit is 1500 queued events for each partition."
desc:"Sets the proxy configuration to use for the buffered producer. When a proxy is configured, <xref uid=\"com.azure.core.amqp.AmqpTransportType.AMQP_WEB_SOCKETS\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AmqpTransportType#AMQP_WEB_SOCKETS\"></xref> must be used for the transport type."
desc:"Sets the transport type by which all the communication with Azure Event Hubs occurs. Default value is <xref uid=\"com.azure.core.amqp.AmqpTransportType.AMQP\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AmqpTransportType#AMQP\"></xref>."
desc:"Builder used to instantiate <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerClient\"></xref> and <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerAsyncClient\"></xref>.\n\nTo create an instance of <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerClient\"></xref> or <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventHubBufferedProducerAsyncClient\"></xref>, the **following fields are required**:\n\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.onSendBatchSucceeded(java.util.function.Consumer<com.azure.messaging.eventhubs.models.SendBatchSucceededContext>)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#onSendBatchSucceeded(Consumer)\"></xref> \\- A callback when events are successfully published to Event Hubs.\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.onSendBatchFailed(java.util.function.Consumer<com.azure.messaging.eventhubs.models.SendBatchFailedContext>)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#onSendBatchFailed(Consumer)\"></xref> \\- A callback when a failure publishing to Event Hubs occurs.\n * Credentials to perform operations against Azure Event Hubs. They can be set by using one of the following methods:\n \n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.credential(java.lang.String,java.lang.String,com.azure.core.credential.TokenCredential)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"credential(String, String, TokenCredential)\"></xref> with the fully qualified namespace, Event Hub name, and a set of credentials authorized to use the Event Hub.\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.credential(com.azure.core.credential.TokenCredential)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#credential(TokenCredential)\"></xref>, <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.credential(com.azure.core.credential.AzureSasCredential)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#credential(AzureSasCredential)\"></xref>, or <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.credential(com.azure.core.credential.AzureNamedKeyCredential)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#credential(AzureNamedKeyCredential)\"></xref> along with <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.fullyQualifiedNamespace(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#fullyQualifiedNamespace(String)\"></xref> and <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.eventHubName(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#eventHubName(String)\"></xref>. The fully qualified namespace, Event Hub name, and authorized credentials to use the Event Hub.\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.connectionString(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"connectionString(String)\"></xref> with a connection string to a specific Event Hub.\n * <xref uid=\"com.azure.messaging.eventhubs.EventHubBufferedProducerClientBuilder.connectionString(java.lang.String,java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"connectionString(String, String)\"></xref> with an Event Hub *namespace* connection string and the Event Hub name.\n\nThe credential used in the following samples is `DefaultAzureCredential` for authentication. It is appropriate for most scenarios, including local development and production environments. Addit