congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
KafkaSystemConsumer.startSubscription
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.samza.system.kafka.KafkaSystemConsumer.startSubscription (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.kafkaKafkaSystemConsumerstartSubscription

Popular methods of KafkaSystemConsumer

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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