public class RequestCountingUtil extends Object
waitUntilNoRunning(RebelServletContext, long)| Modifier and Type | Field and Description |
|---|---|
static Map<org.zeroturnaround.javarebel.RebelServletContext,org.zeroturnaround.javarebel.integration.util.RequestCountingUtil.CountingRequestListener> |
listeners |
| 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 final Map<org.zeroturnaround.javarebel.RebelServletContext,org.zeroturnaround.javarebel.integration.util.RequestCountingUtil.CountingRequestListener> listeners
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)
context - Servlet Context of the application.timeout - maximum time to wait for.true if there are no requests running, false if timeout was reached.Copyright © 2016. All rights reserved.