Codota Logo
EventHubOperation.setCheckpointConfig
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getExternalFilesDir (Context)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Notification (javax.management)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now