Class TestUtil
Object
com.liferay.portal.kernel.concurrent.test.TestUtil
- Author:
- Shuyang Zhou
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final long
static final long
static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
closePool
(com.liferay.portal.kernel.concurrent.ThreadPoolExecutor threadPoolExecutor) static void
closePool
(com.liferay.portal.kernel.concurrent.ThreadPoolExecutor threadPoolExecutor, boolean force) static void
unblock
(MarkerBlockingJob... markerBlockingJobs) static void
waitUntilBlock
(MarkerBlockingJob... markerBlockingJobs) static void
waitUntilEnded
(MarkerBlockingJob... markerBlockingJobs)
-
Field Details
-
KEEPALIVE_TIME
public static final long KEEPALIVE_TIME- See Also:
-
KEEPALIVE_WAIT
public static final long KEEPALIVE_WAIT- See Also:
-
LONG_WAIT
public static final long LONG_WAIT- See Also:
-
SHORT_WAIT
public static final long SHORT_WAIT- See Also:
-
-
Constructor Details
-
TestUtil
public TestUtil()
-
-
Method Details
-
closePool
public static void closePool(com.liferay.portal.kernel.concurrent.ThreadPoolExecutor threadPoolExecutor) -
closePool
public static void closePool(com.liferay.portal.kernel.concurrent.ThreadPoolExecutor threadPoolExecutor, boolean force) -
unblock
-
waitUntilBlock
public static void waitUntilBlock(MarkerBlockingJob... markerBlockingJobs) throws InterruptedException - Throws:
InterruptedException
-
waitUntilEnded
public static void waitUntilEnded(MarkerBlockingJob... markerBlockingJobs) throws InterruptedException - Throws:
InterruptedException
-