Constructor.parampollInterval polling interval this._pollInterval = pollInterval; this._monitoredEntries = new HashSet();
this._pollInterval = pollInterval; this._monitoredEntries = new HashSet();
Adds the given monitorable entry to the list.paramentry a monitorable entry synchronized (this._monitoredEntries) { this._monitoredEntries.add(entry); }
synchronized (this._monitoredEntries) { this._monitoredEntries.add(entry); }
Removes the monitorable entry from the list.paramentry monitorable entry to be removed synchronized (this._monitoredEntries) { this._monitoredEntries.remove(entry); }
synchronized (this._monitoredEntries) { this._monitoredEntries.remove(entry); }
Starts this monitor. this._timer = new Timer(true); this._timer.schedule(this, 0, this._pollInterval);
this._timer = new Timer(true); this._timer.schedule(this, 0, this._pollInterval);
Stops this monitor. if (this._timer != null) { this._timer.cancel(); }
if (this._timer != null) { this._timer.cancel(); }