| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | |
| private final LinkedBlockingQueue | |
| private final ArrayList | |
| private final PauseDetector. | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addListener(PauseDetectorListener
Listener to add listener)Add a |
| public synchronized void | addListener(PauseDetectorListener
Listener to add listener, boolean If true, listener will be added to high priority list. If false, listener will
be added to the normal priority list. isHighPriority)Add a |
| protected synchronized void | notifyListeners(final long
pause length (in nanoseconds) pauseLengthNsec, final long pause end time (in nanoTime) pauseEndTimeNsec)Notify listeners about a pause |
| public synchronized void | removeListener(PauseDetectorListener
Listener to remove listener) |
| public void |
| highPriorityListeners | back to summary |
|---|---|
| private final ArrayList<PauseDetectorListener> highPriorityListeners | |
| messages | back to summary |
|---|---|
| private final LinkedBlockingQueue<Object> messages | |
| normalPriorityListeners | back to summary |
|---|---|
| private final ArrayList<PauseDetectorListener> normalPriorityListeners | |
| pauseDetectorThread | back to summary |
|---|---|
| private final PauseDetector. | |
| stop | back to summary |
|---|---|
| private volatile boolean stop | |
| PauseDetector | back to summary |
|---|---|
| protected PauseDetector() | |
| addListener | back to summary |
|---|---|
| public synchronized void addListener(PauseDetectorListener listener) Add a
| |
| addListener | back to summary |
|---|---|
| public synchronized void addListener(PauseDetectorListener listener, boolean isHighPriority) Add a
| |
| notifyListeners | back to summary |
|---|---|
| protected synchronized void notifyListeners(final long pauseLengthNsec, final long pauseEndTimeNsec) Notify listeners about a pause
| |
| removeListener | back to summary |
|---|---|
| public synchronized void removeListener(PauseDetectorListener listener) Remove a
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() Stop execution of this pause detector | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final PauseDetector. | |
| pack-priv final PauseDetectorListener |
| Access | Constructor and Description |
|---|---|
| pack-priv | ChangeListenersRequest(final PauseDetector.
|
| command | back to summary |
|---|---|
| pack-priv final PauseDetector. | |
| listener | back to summary |
|---|---|
| pack-priv final PauseDetectorListener listener | |
| ChangeListenersRequest | back to summary |
|---|---|
| pack-priv ChangeListenersRequest(final PauseDetector. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PauseDetector. | |
| public static final PauseDetector. | |
| public static final PauseDetector. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PauseDetector. | |
| public static PauseDetector. |
| ADD_HIGH_PRIORITY | back to summary |
|---|---|
| public static final PauseDetector. | |
| ADD_NORMAL_PRIORITY | back to summary |
|---|---|
| public static final PauseDetector. | |
| REMOVE | back to summary |
|---|---|
| public static final PauseDetector. | |
| ChangeCommand | back to summary |
|---|---|
| private ChangeCommand() | |
| valueOf | back to summary |
|---|---|
| public static PauseDetector. | |
| values | back to summary |
|---|---|
| public static PauseDetector. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. |
| PauseDetectorThread | back to summary |
|---|---|
| private PauseDetectorThread() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final long | |
| pack-priv final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| pauseEndTimeNsec | back to summary |
|---|---|
| pack-priv final long pauseEndTimeNsec | |
| pauseLengthNsec | back to summary |
|---|---|
| pack-priv final long pauseLengthNsec | |
| PauseNotification | back to summary |
|---|---|
| pack-priv PauseNotification(final long pauseLengthNsec, final long pauseEndTimeNsec) | |