public class Monitor extends AbstractMonitor
AbstractMonitor.AsyncTimerTaskOMMonitor.Async| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_ASYNC_SCHEDULE_PERIOD |
DEFAULT_TIME_FACTOR, THOUSANDHUNDRED, ONE, TEN, ZERO| Constructor and Description |
|---|
Monitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
cancel(java.lang.RuntimeException cancelException) |
void |
checkCanceled() |
protected long |
getAsyncSchedulePeriod() |
protected java.util.Timer |
getTimer() |
boolean |
isCanceled() |
protected void |
scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period) |
begin, begin, createAsyncTimerTask, createNestedMonitor, done, fork, fork, forkAsync, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, worked, workedpublic static final long DEFAULT_ASYNC_SCHEDULE_PERIOD
public void cancel()
public void cancel(java.lang.RuntimeException cancelException)
public boolean isCanceled()
public void checkCanceled()
throws MonitorCanceledException
MonitorCanceledExceptionprotected long getAsyncSchedulePeriod()
getAsyncSchedulePeriod in class AbstractMonitorprotected java.util.Timer getTimer()
getTimer in class AbstractMonitorprotected void scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period)
scheduleAtFixedRate in class AbstractMonitorCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html