Package org.eclipse.net4j.util.concurrent

# Klasse MonitoredThread.MultiThreadMonitor

java.lang.Object
org.eclipse.net4j.util.concurrent.MonitoredThread.MultiThreadMonitor

Alle implementierten Schnittstellen:
  `Runnable`, `MonitoredThread.ThreadMonitor`

Umschließende Klasse:
  `MonitoredThread`

public static class MonitoredThread.MultiThreadMonitor extends Object implements MonitoredThread.ThreadMonitor, Runnable

Autor:
  Eike Stepper

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final long`
`SYNCED_START`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`MultiThreadMonitor(long timeOut)`
Same as calling `MonitoredThread(idleTimeOut, SYNCED_START)`.
`MultiThreadMonitor(long idleTimeOut, long startOffset)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`void`
`addThread(MonitoredThread thread)`
`long`
`getIdleTimeOut()`
`void`
`handleFinished(MonitoredThread thread)`
`void`
`handleStarting(MonitoredThread thread)`
`protected void`
`handleTimeoutExpiration(MonitoredThread thread)`
`void`
`run()`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### SYNCED_START

public static final long SYNCED_START

Siehe auch:
  - Konstantenfeldwerte

## Konstruktordetails

### MultiThreadMonitor

public MultiThreadMonitor(long idleTimeOut, long startOffset)

Parameter:
  `idleTimeOut` - The number of milli seconds one of the threads may be idle (i.e. not having called `MonitoredThread.heartBeat()`) before `handleTimeoutExpiration(MonitoredThread)` is called.
  `startOffset` - The number of milli seconds to sleep between threads are started. Zero means not to sleep and `SYNCED_START` means that all threads start at the same time by waiting on a shared latch.

### MultiThreadMonitor

public MultiThreadMonitor(long timeOut)
Same as calling `MonitoredThread(idleTimeOut, SYNCED_START)`.

## Methodendetails

### getIdleTimeOut

public long getIdleTimeOut()

### addThread

public void addThread(MonitoredThread thread)

### handleStarting

public void handleStarting(MonitoredThread thread)

Angegeben von:
  `handleStarting` in Schnittstelle `MonitoredThread.ThreadMonitor`

### handleFinished

public void handleFinished(MonitoredThread thread)

Angegeben von:
  `handleFinished` in Schnittstelle `MonitoredThread.ThreadMonitor`

### run

public void run()

Angegeben von:
  `run` in Schnittstelle `Runnable`

### handleTimeoutExpiration

protected void handleTimeoutExpiration(MonitoredThread thread)