public interface MonitorListener
void snapshotReceived(Snapshot monSnap)
The snapshot object must only be used within the invocation of this method, as it will cease to be valid as soon as snapshotReceived returns. For example, an implementation of this interface should not pass the snapshot object to another thread for asynchronous processing, because the snapshot may have become invalid by the time that thread receives the snapshot.
If you need to store a snapshot for later processing, you may
clone() individual objects in the snapshot (ThreadInfo,
monSnap- Snapshot just received from the StreamBase server.