Tabnine Logo
EventHubOperation.setStartPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
setStartPosition
method
in
com.microsoft.azure.spring.integration.eventhub.api.EventHubOperation

Best Java code snippets using com.microsoft.azure.spring.integration.eventhub.api.EventHubOperation.setStartPosition (Showing top 1 results out of 315)

origin: Microsoft/spring-cloud-azure

@Override
protected MessageProducer createConsumerEndpoint(ConsumerDestination destination, String group,
    ExtendedConsumerProperties<EventHubConsumerProperties> properties) {
  this.eventHubOperation.setStartPosition(properties.getExtension().getStartPosition());
  CheckpointConfig checkpointConfig =
      CheckpointConfig.builder().checkpointMode(properties.getExtension().getCheckpointMode())
              .checkpointCount(properties.getExtension().getCheckpointCount()).build();
  this.eventHubOperation.setCheckpointConfig(checkpointConfig);
  boolean anonymous = !StringUtils.hasText(group);
  if (anonymous) {
    group = "anonymous." + UUID.randomUUID().toString();
    this.eventHubOperation.setStartPosition(StartPosition.LATEST);
  }
  EventHubInboundChannelAdapter inboundAdapter =
      new EventHubInboundChannelAdapter(destination.getName(), this.eventHubOperation, group);
  inboundAdapter.setBeanFactory(getBeanFactory());
  return inboundAdapter;
}
com.microsoft.azure.spring.integration.eventhub.apiEventHubOperationsetStartPosition

Popular methods of EventHubOperation

  • setCheckpointConfig
  • sendAsync
  • subscribe

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Menu (java.awt)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • 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