Package com.helger.commons.concurrent
-
Interface Summary Interface Description IExecutorServiceFactory Factory for creatingExecutorServiceinstances. -
Class Summary Class Description AutoLock Small wrapper aroundLockinterface to be used in a try-with-resources statement, so that the unlock happened.BasicThreadFactory An implementation of theThreadFactoryinterface that provides some configuration options for the threads it creates.BasicThreadFactory.Builder A builder class for creating instances ofBasicThreadFactory.ExecutorServiceHelper Wrapper around anExecutorServicewith additional helper methods.NonReentrantLock Non reentrant lock.SimpleLock This is an extension aroundReentrantLockthat allows for easy usage with Java 8 :) SeeSimpleLock.locked(Runnable)andSimpleLock.locked(Runnable)method.SimpleReadWriteLock This is an extension aroundReentrantReadWriteLockthat allows for easy usage with Java 8 :) SeeSimpleReadWriteLock.readLocked(Runnable)andSimpleReadWriteLock.writeLocked(Runnable)method.ThreadHelper Some thread utility methods.