Tabnine Logo
ConsumerConfiguration$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
ConsumerConfiguration$Builder
in
co.cask.cdap.api.dataset.lib.partitioned

Best Java code snippets using co.cask.cdap.api.dataset.lib.partitioned.ConsumerConfiguration$Builder (Showing top 9 results out of 315)

origin: caskdata/cdap

ConsumerConfiguration consumerConfiguration = ConsumerConfiguration.builder().setMaxWorkingSetSize(100).build();
origin: caskdata/cdap

ConsumerConfiguration configuration = ConsumerConfiguration.builder().setMaxRetries(3).build();
origin: caskdata/cdap

 ConsumerConfiguration.builder().setPartitionPredicate(predicate).build();
PartitionConsumer newPartitionConsumer =
 new ConcurrentPartitionConsumer(dataset, new InMemoryStatePersistor(), configuration);
origin: caskdata/cdap

 .setMaxWorkingSetSize(1)
 .setMaxRetries(2)
 .build();
final PartitionConsumer partitionConsumer = new ConcurrentPartitionConsumer(dataset, new InMemoryStatePersistor(),
                                      configuration);
origin: caskdata/cdap

                 ConsumerConfiguration.builder().setMaxRetries(1).build());
dsFrameworkUtil.newInMemoryTransactionExecutor(txAwareDataset).execute(new TransactionExecutor.Subroutine() {
 @Override
origin: caskdata/cdap

final TransactionAware txAwareDataset = (TransactionAware) dataset;
ConsumerConfiguration configuration = ConsumerConfiguration.builder().setMaxRetries(3).build();
final PartitionConsumer partitionConsumer =
 new ConcurrentPartitionConsumer(dataset, new InMemoryStatePersistor(), configuration);
origin: caskdata/cdap

.setMaxRetries(3)
.build();
origin: caskdata/cdap

ConsumerConfiguration configuration = ConsumerConfiguration.builder().setMaxRetries(numRetries).build();
final PartitionConsumer partitionConsumer = new ConcurrentPartitionConsumer(dataset, new InMemoryStatePersistor(),
                                      configuration);
origin: cdapio/cdap

/**
 * @return a {@link Builder} instance to build an instance of a ConsumerConfiguration.
 */
public static Builder builder() {
 return new Builder();
}
co.cask.cdap.api.dataset.lib.partitionedConsumerConfiguration$Builder

Javadoc

A Builder to construct ConsumerConfiguration instances.

Most used methods

  • <init>
  • build
    Create a ConsumerConfiguration from this builder, using the private ConsumerConfiguration constructo
  • setMaxRetries
    Sets the number of retries of the ConsumerConfiguration. See #getMaxRetries().
  • setMaxWorkingSetSize
    Sets the maximum working set size of the ConsumerConfiguration. See #getMaxWorkingSetSize().
  • setPartitionPredicate
    Sets the Predicate of the ConsumerConfiguration. See #getPartitionPredicate() ()}.

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • 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