Tabnine Logo
KafkaSystemConsumer.setFetchThresholds
Code IndexAdd Tabnine to your IDE (free)

How to use
setFetchThresholds
method
in
org.apache.samza.system.kafka.KafkaSystemConsumer

Best Java code snippets using org.apache.samza.system.kafka.KafkaSystemConsumer.setFetchThresholds (Showing top 3 results out of 315)

origin: apache/samza

@Override
public void start() {
 if (!started.compareAndSet(false, true)) {
  LOG.warn("{}: Attempting to start the consumer for the second (or more) time.", this);
  return;
 }
 if (stopped.get()) {
  LOG.error("{}: Attempting to start a stopped consumer", this);
  return;
 }
 // initialize the subscriptions for all the registered TopicPartitions
 startSubscription();
 // needs to be called after all the registrations are completed
 setFetchThresholds();
 startConsumer();
 LOG.info("{}: Consumer started", this);
}
origin: org.apache.samza/samza-kafka_2.11

@Override
public void start() {
 if (!started.compareAndSet(false, true)) {
  LOG.warn("{}: Attempting to start the consumer for the second (or more) time.", this);
  return;
 }
 if (stopped.get()) {
  LOG.error("{}: Attempting to start a stopped consumer", this);
  return;
 }
 // initialize the subscriptions for all the registered TopicPartitions
 startSubscription();
 // needs to be called after all the registrations are completed
 setFetchThresholds();
 startConsumer();
 LOG.info("{}: Consumer started", this);
}
origin: org.apache.samza/samza-kafka

@Override
public void start() {
 if (!started.compareAndSet(false, true)) {
  LOG.warn("{}: Attempting to start the consumer for the second (or more) time.", this);
  return;
 }
 if (stopped.get()) {
  LOG.error("{}: Attempting to start a stopped consumer", this);
  return;
 }
 // initialize the subscriptions for all the registered TopicPartitions
 startSubscription();
 // needs to be called after all the registrations are completed
 setFetchThresholds();
 startConsumer();
 LOG.info("{}: Consumer started", this);
}
org.apache.samza.system.kafkaKafkaSystemConsumersetFetchThresholds

Popular methods of KafkaSystemConsumer

  • stop
  • toTopicPartition
  • compareOffsets
    Compare two String offsets. Note. There is a method in KafkaSystemAdmin that does that, but that wou
  • startConsumer
    Set the offsets to start from. Register the TopicPartitions with the proxy. Start the proxy.
  • startSubscription
  • toTopicAndPartition
  • getMessagesSizeInQueue
  • getNumMessagesInQueue
  • register
    record the ssp and the offset. Do not submit it to the consumer yet.
  • start

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Reference (javax.naming)
  • CodeWhisperer alternatives
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