public class TimeoutMonitor extends Monitor
AbstractMonitor.AsyncTimerTaskOMMonitor.AsyncDEFAULT_ASYNC_SCHEDULE_PERIODDEFAULT_TIME_FACTOR, THOUSANDHUNDRED, ONE, TEN, ZERO| Constructor and Description |
|---|
TimeoutMonitor(long timeout) |
| Modifier and Type | Method and Description |
|---|---|
OMMonitor |
begin(double totalWork) |
void |
cancel(java.lang.RuntimeException cancelException) |
void |
checkCanceled() |
void |
done() |
OMMonitor |
fork(double work) |
OMMonitor.Async |
forkAsync(double work) |
long |
getTimeout() |
protected void |
handleTimeout(long untouched) |
boolean |
isCanceled() |
void |
setTimeout(long timeout) |
void |
touch() |
void |
worked(double work) |
cancel, getAsyncSchedulePeriod, getTimer, scheduleAtFixedRatebegin, createAsyncTimerTask, createNestedMonitor, fork, forkAsync, getTotalWork, getWork, getWorkPercent, hasBegun, percent, workedpublic long getTimeout()
public void setTimeout(long timeout)
public void touch()
public OMMonitor begin(double totalWork)
begin in interface OMMonitorbegin in class AbstractMonitorpublic void worked(double work)
worked in interface OMMonitorworked in class AbstractMonitorpublic OMMonitor fork(double work)
fork in interface OMMonitorfork in class AbstractMonitorpublic OMMonitor.Async forkAsync(double work)
forkAsync in interface OMMonitorforkAsync in class AbstractMonitorpublic void done()
done in interface OMMonitordone in class AbstractMonitorpublic void cancel(java.lang.RuntimeException cancelException)
public boolean isCanceled()
isCanceled in interface OMMonitorisCanceled in class Monitorpublic void checkCanceled()
throws MonitorCanceledException
checkCanceled in interface OMMonitorcheckCanceled in class MonitorMonitorCanceledExceptionprotected void handleTimeout(long untouched)
Copyright (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