public class RequestCountingUtil extends Object
waitUntilNoRunning(RebelServletContext, long)| Constructor and Description |
|---|
RequestCountingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countRunning(org.zeroturnaround.javarebel.RebelServletContext context) |
static void |
register(org.zeroturnaround.javarebel.RebelServletContext context) |
static void |
unregister(org.zeroturnaround.javarebel.RebelServletContext context) |
static boolean |
waitUntilNoRunning(org.zeroturnaround.javarebel.RebelServletContext context,
long timeout)
Waits until there are no requests currently running.
|
public static void register(org.zeroturnaround.javarebel.RebelServletContext context)
public static void unregister(org.zeroturnaround.javarebel.RebelServletContext context)
public static int countRunning(org.zeroturnaround.javarebel.RebelServletContext context)
public static boolean waitUntilNoRunning(org.zeroturnaround.javarebel.RebelServletContext context,
long timeout)
throws InterruptedException
context - Servlet Context of the application.timeout - maximum time to wait for.true if there are no requests running, false if timeout was reached.InterruptedExceptionCopyright © 2017. All rights reserved.