public abstract class HystrixSampleSseServlet
extends HttpServlet
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_PAUSE_POLLER_THREAD_DELAY_IN_MS |
protected <any> |
sampleStream |
Modifier | Constructor and Description |
---|---|
protected |
HystrixSampleSseServlet(<any> sampleStream) |
protected |
HystrixSampleSseServlet(<any> sampleStream,
int pausePollerThreadDelayInMs) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
decrementCurrentConcurrentConnections() |
void |
destroy()
Handle servlet being undeployed by gracefully releasing connections so poller threads stop.
|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handle incoming GETs
|
protected abstract int |
getMaxNumberConcurrentConnectionsAllowed() |
protected abstract int |
getNumberCurrentConnections() |
protected abstract int |
incrementAndGetCurrentConcurrentConnections() |
void |
init() |
static void |
shutdown()
WebSphere won't shutdown a servlet until after a 60 second timeout if there is an instance of the servlet executing
a request.
|
protected final <any> sampleStream
protected static final int DEFAULT_PAUSE_POLLER_THREAD_DELAY_IN_MS
protected HystrixSampleSseServlet(<any> sampleStream)
protected HystrixSampleSseServlet(<any> sampleStream, int pausePollerThreadDelayInMs)
protected abstract int getMaxNumberConcurrentConnectionsAllowed()
protected abstract int getNumberCurrentConnections()
protected abstract int incrementAndGetCurrentConcurrentConnections()
protected abstract void decrementCurrentConcurrentConnections()
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public static void shutdown()
public void init() throws ServletException
ServletException
public void destroy()