Tabnine Logo
EventHubClient.createPartitionSender
Code IndexAdd Tabnine to your IDE (free)

How to use
createPartitionSender
method
in
com.microsoft.azure.eventhubs.EventHubClient

Best Java code snippets using com.microsoft.azure.eventhubs.EventHubClient.createPartitionSender (Showing top 1 results out of 315)

origin: Azure/azure-event-hubs-java

/**
 * Synchronous version of {@link #createPartitionSender(String)}.
 *
 * @param partitionId partitionId of EventHub to send the {@link EventData}'s to
 * @return PartitionSenderImpl which can be used to send events to a specific partition.
 * @throws EventHubException if Service Bus service encountered problems during connection creation.
 */
default PartitionSender createPartitionSenderSync(final String partitionId) throws EventHubException, IllegalArgumentException {
  return ExceptionUtil.syncWithIllegalArgException(() -> this.createPartitionSender(partitionId).get());
}
com.microsoft.azure.eventhubsEventHubClientcreatePartitionSender

Javadoc

Create a PartitionSender which can publish EventData's directly to a specific EventHub partition (sender type iii. in the below list).

There are 3 patterns/ways to send to EventHubs:

 
i.    
#send(EventData) or  
#send(Iterable)ii.   
#send(EventData,String) or  
#send(Iterable,String)iii.  
PartitionSender#send(EventData) or  
PartitionSender#send(Iterable)

Popular methods of EventHubClient

  • createSync
    Synchronous version of #create(String,ScheduledExecutorService).
  • createPartitionSenderSync
  • send
  • close
  • closeSync
  • sendSync
    Synchronous version of #send(Iterable,String).
  • createReceiver
  • getRuntimeInformation
    Retrieves general information about an event hub (see EventHubRuntimeInformation for details). Retri
  • create
    Factory method to create an instance of EventHubClient using the supplied connectionString. In a nor
  • createEpochReceiver
    Create a Epoch based EventHub receiver with given partition id and start receiving from the beginnin
  • createReceiverSync
    Synchronous version of #createReceiver(String,String,EventPosition).
  • getPartitionRuntimeInformation
    Retrieves dynamic information about a partition of an event hub (see PartitionRuntimeInformation for
  • createReceiverSync,
  • getPartitionRuntimeInformation,
  • createBatch,
  • createEpochReceiverSync,
  • createFromConnectionString,
  • createFromConnectionStringSync

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • putExtra (Intent)
  • startActivity (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now