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

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

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

origin: Microsoft/spring-cloud-azure

  @Bean
  public EventHubInboundChannelAdapter messageChannelAdapter(
      @Qualifier(INPUT_CHANNEL) MessageChannel inputChannel, EventHubOperation eventhubOperation) {
    eventhubOperation.setCheckpointConfig(CheckpointConfig.builder().checkpointMode(CheckpointMode.MANUAL).build());
    EventHubInboundChannelAdapter adapter = new EventHubInboundChannelAdapter(EVENTHUB_NAME,
        eventhubOperation, CONSUMER_GROUP);
    adapter.setOutputChannel(inputChannel);
    return adapter;
  }
}
origin: Microsoft/spring-cloud-azure

@PostConstruct
public void subscribeToEventHub() {
  this.eventHubOperation
      .setCheckpointConfig(CheckpointConfig.builder().checkpointMode(CheckpointMode.MANUAL).build());
  this.eventHubOperation.subscribe(EVENT_HUB_NAME, CONSUMER_GROUP, this::messageReceiver, String.class);
}
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.apiEventHubOperationsetCheckpointConfig

Popular methods of EventHubOperation

  • sendAsync
  • setStartPosition
  • subscribe

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • From CI to AI: The AI layer in your organization
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