| Modifier and Type | Method and Description |
|---|---|
static ExecutorService |
newCachedThreadPool(String namePrefix,
org.slf4j.Logger logger) |
static ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
String namePrefix,
org.slf4j.Logger logger) |
static ExecutorService |
newSingleThreadExecutor(String namePrefix,
org.slf4j.Logger logger)
Creates a single thread executor with a
ThreadFactory that uses
the provided prefix for its thread names and logs uncaught exceptions
with the specified Logger. |
static ScheduledExecutorService |
newSingleThreadScheduledExecutor(String namePrefix,
org.slf4j.Logger logger) |
public static ExecutorService newSingleThreadExecutor(String namePrefix, org.slf4j.Logger logger)
ThreadFactory that uses
the provided prefix for its thread names and logs uncaught exceptions
with the specified Logger.namePrefix - Prefix for this executor thread nameslogger - Logger used to log uncaught exceptionspublic static ExecutorService newCachedThreadPool(String namePrefix, org.slf4j.Logger logger)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix, org.slf4j.Logger logger)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String namePrefix, org.slf4j.Logger logger)
Copyright © 2019 OpenDaylight. All rights reserved.