Codota Logo
MultiThreadedTaskRunner.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.datacleaner.job.concurrent.MultiThreadedTaskRunner
constructor

Best Java code snippets using org.datacleaner.job.concurrent.MultiThreadedTaskRunner.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

@Bean(name = "taskRunner", destroyMethod = "shutdown")
public TaskRunner createTaskRunner() {
  if (_numThreads == null) {
    throw new IllegalStateException("Number of threads have not been configured.");
  }
  logger.info("Creating shared task runner with {} threads", _numThreads);
  return new MultiThreadedTaskRunner(_numThreads);
}
origin: org.eobjects.datacleaner/DataCleaner-monitor-services

private TaskRunner createTemporaryDelegate() {
  return new MultiThreadedTaskRunner(Runtime.getRuntime().availableProcessors());
}
origin: datacleaner/DataCleaner

private void updateTaskRunnerIfSpecified(final Configuration configuration,
    final TemporaryMutableDataCleanerEnvironment environment,
    final DataCleanerConfiguration temporaryConfiguration) {
  final SinglethreadedTaskrunnerType singlethreadedTaskrunner = configuration.getSinglethreadedTaskrunner();
  final MultithreadedTaskrunnerType multithreadedTaskrunner = configuration.getMultithreadedTaskrunner();
  final CustomElementType customTaskrunner = configuration.getCustomTaskrunner();
  if (singlethreadedTaskrunner != null) {
    final TaskRunner taskRunner = new SingleThreadedTaskRunner();
    environment.setTaskRunner(taskRunner);
  } else if (multithreadedTaskrunner != null) {
    final Short maxThreads = multithreadedTaskrunner.getMaxThreads();
    final TaskRunner taskRunner;
    if (maxThreads != null) {
      taskRunner = new MultiThreadedTaskRunner(maxThreads.intValue());
    } else {
      taskRunner = new MultiThreadedTaskRunner();
    }
    environment.setTaskRunner(taskRunner);
  } else if (customTaskrunner != null) {
    final TaskRunner taskRunner =
        createCustomElement(customTaskrunner, TaskRunner.class, temporaryConfiguration, true);
    environment.setTaskRunner(taskRunner);
  }
}
org.datacleaner.job.concurrentMultiThreadedTaskRunner<init>

Popular methods of MultiThreadedTaskRunner

  • executeInternal
  • getNumThreads
  • shutdown

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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