Tabnine Logo
HttpClientOptions.getThreadPrefix
Code IndexAdd Tabnine to your IDE (free)

How to use
getThreadPrefix
method
in
com.atlassian.httpclient.api.factory.HttpClientOptions

Best Java code snippets using com.atlassian.httpclient.api.factory.HttpClientOptions.getThreadPrefix (Showing top 4 results out of 315)

origin: com.atlassian.httpclient/atlassian-httpclient-api

private ExecutorService defaultCallbackExecutor() {
  ThreadFactory threadFactory = ThreadFactories.namedThreadFactory(getThreadPrefix() + "-callbacks", ThreadFactories.Type.DAEMON);
  return new ThreadPoolExecutor(
      0,
      getMaxCallbackThreadPoolSize(),
      60L,
      TimeUnit.SECONDS,
      new LinkedBlockingQueue<>(threadWorkQueueLimit),
      threadFactory,
      (r, e) -> log.warn(
          "Exceeded the limit of requests waiting for execution. " +
              " Increase the value of the system property {} to prevent these situations in the " +
              "future. Current value of {} = {}.",
          OPTION_THREAD_WORK_QUEUE_LIMIT,
          OPTION_THREAD_WORK_QUEUE_LIMIT,
          threadWorkQueueLimit)
  );
}
origin: jenkinsci/jira-plugin

    .setThreadFactory(ThreadFactories.namedThreadFactory(options.getThreadPrefix() + "-io", ThreadFactories.Type.DAEMON))
    .setDefaultIOReactorConfig(reactorConfig)
    .setConnectionManager(connectionManager)
throw new RuntimeException("Reactor " + options.getThreadPrefix() + "not set up correctly", e);
origin: com.atlassian.httpclient/atlassian-httpclient-apache-httpcomponents

DefaultConnectingIOReactor reactor = new DefaultConnectingIOReactor(
    ioReactorConfig,
    ThreadFactories.namedThreadFactory(options.getThreadPrefix() + "-io", ThreadFactories.Type.DAEMON));
reactor.setExceptionHandler(new IOReactorExceptionHandler()
throw new RuntimeException("Reactor " + options.getThreadPrefix() + "not set up correctly", e);
origin: com.atlassian.httpclient/atlassian-httpclient-library

    .setThreadFactory(ThreadFactories.namedThreadFactory(options.getThreadPrefix() + "-io", ThreadFactories.Type.DAEMON))
    .setDefaultIOReactorConfig(reactorConfig)
    .setConnectionManager(connectionManager)
throw new RuntimeException("Reactor " + options.getThreadPrefix() + "not set up correctly", e);
com.atlassian.httpclient.api.factoryHttpClientOptionsgetThreadPrefix

Popular methods of HttpClientOptions

  • <init>
  • setSocketTimeout
  • setConnectionTimeout
    Sets how long, in milliseconds, to wait for a TCP connection
  • setRequestTimeout
  • getCallbackExecutor
  • getConnectionPoolTimeToLive
  • getConnectionTimeout
  • getIoSelectInterval
    Determines time interval in milliseconds at which the I/O reactor wakes up to check for timed out se
  • getIoThreadCount
    Determines the number of I/O dispatch threads to be used by the I/O reactor. Default: 10
  • getLeaseTimeout
  • getMaxConnectionsPerHost
  • getMaxEntitySize
  • getMaxConnectionsPerHost,
  • getMaxEntitySize,
  • getRequestPreparer,
  • getSocketTimeout,
  • getUserAgent,
  • setMaxConnectionsPerHost,
  • setThreadPrefix,
  • getIgnoreCookies,
  • getMaxCacheEntries

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Runner (org.openjdk.jmh.runner)
  • 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