Package com.alibaba.ttl.threadpool
Class TtlForkJoinPoolHelper
- java.lang.Object
-
- com.alibaba.ttl.threadpool.TtlForkJoinPoolHelper
-
public class TtlForkJoinPoolHelper extends Object
Factory Utils for getting TTL wrapper ofForkJoinPool.ForkJoinWorkerThreadFactory
.all method is
null
-safe, when input parameter(eg:ForkJoinPool.ForkJoinWorkerThreadFactory
) isnull
, returnnull
.- Since:
- 2.10.1
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
ForkJoinPool
,ForkJoinPool.ForkJoinWorkerThreadFactory
,ForkJoinPool.defaultForkJoinWorkerThreadFactory
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ForkJoinPool.ForkJoinWorkerThreadFactory
getDefaultDisableInheritableForkJoinWorkerThreadFactory()
Wrapper ofForkJoinPool.defaultForkJoinWorkerThreadFactory
, disable inheritable.static ForkJoinPool.ForkJoinWorkerThreadFactory
getDisableInheritableForkJoinWorkerThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory)
Wrapper ofForkJoinPool.ForkJoinWorkerThreadFactory
, disable inheritable.static boolean
isDisableInheritableForkJoinWorkerThreadFactory(ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory)
check theForkJoinPool.ForkJoinWorkerThreadFactory
isDisableInheritableForkJoinWorkerThreadFactory
or not.static ForkJoinPool.ForkJoinWorkerThreadFactory
unwrap(ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory)
UnwrapDisableInheritableForkJoinWorkerThreadFactory
to the original/underneath one.
-
-
-
Method Detail
-
getDisableInheritableForkJoinWorkerThreadFactory
@Nullable public static ForkJoinPool.ForkJoinWorkerThreadFactory getDisableInheritableForkJoinWorkerThreadFactory(@Nullable ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory)
Wrapper ofForkJoinPool.ForkJoinWorkerThreadFactory
, disable inheritable.- Parameters:
threadFactory
- input thread factory- Since:
- 2.10.1
- See Also:
DisableInheritableForkJoinWorkerThreadFactory
-
getDefaultDisableInheritableForkJoinWorkerThreadFactory
@Nullable public static ForkJoinPool.ForkJoinWorkerThreadFactory getDefaultDisableInheritableForkJoinWorkerThreadFactory()
Wrapper ofForkJoinPool.defaultForkJoinWorkerThreadFactory
, disable inheritable.- Since:
- 2.10.1
- See Also:
getDisableInheritableForkJoinWorkerThreadFactory(ForkJoinWorkerThreadFactory)
-
isDisableInheritableForkJoinWorkerThreadFactory
public static boolean isDisableInheritableForkJoinWorkerThreadFactory(@Nullable ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory)
check theForkJoinPool.ForkJoinWorkerThreadFactory
isDisableInheritableForkJoinWorkerThreadFactory
or not.- Since:
- 2.10.1
- See Also:
DisableInheritableForkJoinWorkerThreadFactory
-
unwrap
@Nullable public static ForkJoinPool.ForkJoinWorkerThreadFactory unwrap(@Nullable ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory)
UnwrapDisableInheritableForkJoinWorkerThreadFactory
to the original/underneath one.- Since:
- 2.10.1
- See Also:
DisableInheritableForkJoinWorkerThreadFactory
-
-