congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StorageClientSettings_Builder.numWorkerThreads
Code IndexAdd Tabnine to your IDE (free)

How to use
numWorkerThreads
method
in
org.apache.bookkeeper.clients.config.StorageClientSettings_Builder

Best Java code snippets using org.apache.bookkeeper.clients.config.StorageClientSettings_Builder.numWorkerThreads (Showing top 3 results out of 315)

origin: org.apache.bookkeeper/stream-storage-java-client-base

/**
 * Replaces the value to be returned by {@link StorageClientSettings#numWorkerThreads()} by
 * applying {@code mapper} to it and using the result.
 *
 * @return this {@code Builder} object
 * @throws NullPointerException if {@code mapper} is null or returns null
 */
public StorageClientSettings.Builder mapNumWorkerThreads(UnaryOperator<Integer> mapper) {
 return numWorkerThreads(mapper.apply(numWorkerThreads()));
}
origin: org.apache.bookkeeper/stream-storage-java-client-base

if (!Objects.equals(template.numWorkerThreads(), _defaults.numWorkerThreads())) {
 numWorkerThreads(template.numWorkerThreads());
origin: org.apache.bookkeeper/stream-storage-java-client-base

/** Sets all property values using the given {@code StorageClientSettings} as a template. */
public StorageClientSettings.Builder mergeFrom(StorageClientSettings value) {
 StorageClientSettings_Builder _defaults = StorageClientSettings.newBuilder();
 if (!Objects.equals(value.numWorkerThreads(), _defaults.numWorkerThreads())) {
  numWorkerThreads(value.numWorkerThreads());
 }
 if (_defaults._unsetProperties.contains(StorageClientSettings_Builder.Property.SERVICE_URI)
   || !Objects.equals(value.serviceUri(), _defaults.serviceUri())) {
  serviceUri(value.serviceUri());
 }
 if (!Objects.equals(value.endpointResolver(), _defaults.endpointResolver())) {
  endpointResolver(value.endpointResolver());
 }
 if (!Objects.equals(value.usePlaintext(), _defaults.usePlaintext())) {
  usePlaintext(value.usePlaintext());
 }
 value.clientName().ifPresent(this::clientName);
 value.statsLogger().ifPresent(this::statsLogger);
 if (!Objects.equals(value.backoffPolicy(), _defaults.backoffPolicy())) {
  backoffPolicy(value.backoffPolicy());
 }
 if (!Objects.equals(value.enableServerSideRouting(), _defaults.enableServerSideRouting())) {
  enableServerSideRouting(value.enableServerSideRouting());
 }
 return (StorageClientSettings.Builder) this;
}
org.apache.bookkeeper.clients.configStorageClientSettings_BuildernumWorkerThreads

Javadoc

Returns the value that will be returned by StorageClientSettings#numWorkerThreads().

Popular methods of StorageClientSettings_Builder

  • backoffPolicy
    Sets the value to be returned by StorageClientSettings#backoffPolicy().
  • build
    Returns a newly-created StorageClientSettings based on the contents of the Builder.
  • clearClientName
    Sets the value to be returned by StorageClientSettings#clientName() to Optional#empty().
  • clearStatsLogger
    Sets the value to be returned by StorageClientSettings#statsLogger() to Optional#empty().
  • clientName
    Sets the value to be returned by StorageClientSettings#clientName().
  • enableServerSideRouting
    Sets the value to be returned by StorageClientSettings#enableServerSideRouting().
  • endpointResolver
    Sets the value to be returned by StorageClientSettings#endpointResolver().
  • serviceUri
    Sets the value to be returned by StorageClientSettings#serviceUri().
  • statsLogger
    Sets the value to be returned by StorageClientSettings#statsLogger().
  • usePlaintext
    Sets the value to be returned by StorageClientSettings#usePlaintext().

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • 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