Codota Logo
KafkaSystemConsumer.startSubscription
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JTable (javax.swing)
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