public class ERQSSchedulerAppHelper extends Object
Use it as follow:
public void refuseNewSessions(final boolean shouldRefuse) { ERQSSchedulerAppHelper.refuseNewSessions(this, shouldRefuse); } public void _terminateFromMonitor() { ERQSSchedulerAppHelper._terminateFromMonitor(); super._terminateFromMonitor(); } public boolean isTerminating() { return ERQSSchedulerAppHelper.isTerminating(super.isTerminating()); }
Constructor and Description |
---|
ERQSSchedulerAppHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
_terminateFromMonitor()
When JavaMonitor tells us to terminate, all jobs must be removed.
|
static boolean |
isTerminating(boolean terminating)
Overridden to return
false if jobs are still running. |
static void |
refuseNewSessions(boolean shouldRefuse)
When refusing new sessions is activated, all running threads are told to exit.
|
public static void refuseNewSessions(boolean shouldRefuse)
shouldRefuse
- true
if the application should start shutting down, false
is ignoredWOApplication.refuseNewSessions(boolean)
public static void _terminateFromMonitor()
isTerminating(boolean)
public static boolean isTerminating(boolean terminating)
false
if jobs are still running. Termination is delayed until
the last job exits.terminating
- value given by the application (ERQSSchedulerAppHelper.isTerminating(super.isTerminating()))true
if the application is about to shut downWOApplication.isTerminating()
Copyright © 2002 – 2020 Project Wonder.