public class EventRejectedExecutionHandler extends Object implements RejectedExecutionHandler
| Constructor and Description |
|---|
EventRejectedExecutionHandler() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isMock() |
void |
rejectedExecution(Runnable r,
ThreadPoolExecutor executor) |
static void |
setMock(boolean mock) |
void |
waitInSeconds(int nbSecond)
Wait, extracted method to easy tests.
|
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor)
rejectedExecution in interface RejectedExecutionHandlerpublic void waitInSeconds(int nbSecond)
throws InterruptedException
nbSecond - number of seconds to wait.InterruptedException - interuptedpublic static boolean isMock()
public static void setMock(boolean mock)
Copyright © 2013–2017 FF4J. All rights reserved.