private class OpenPilarSocket.Monitor extends Object
| Modifier and Type | Field and Description |
|---|---|
private Object |
acknowledge
The lock object for waits on acknowledge.
|
private Collection |
commands
The list of commands monitored.
|
private Object |
complete
The lock object for complete waits.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Monitor(Collection watch) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allAcknowledged()
Checks, if all monitored commands have been acknowledged.
|
protected boolean |
allCompleted()
Checks, if all monitored commands have been completed.
|
private void |
checkState(TplCommand ready)
Checks, if the incoming class is watched by this monitor.
|
private final Collection commands
private final Object acknowledge
private final Object complete
protected Monitor(Collection watch)
private void checkState(TplCommand ready)
protected boolean allAcknowledged()
protected boolean allCompleted()