public interface TableObserver
The table observer is a mechanism used to monitor periodically changes made to the table. This scenario is common in multi-threaded application where a thread is modifying the table and one or multiple threads need to take action when updates are made.
Table observer users should periodically call the
hasTableChanged()
method to check the status. Each call resets
the observer so if the method returns true and the table doesn't change after
that it will return false next time.
Observers should be destroyed when not needed anymore. A new observer can be
obtained from the Table
instance.
Table
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this observer.
|
TableDiff |
getDiff()
Gets the table difference.
|
Table |
getTable()
Gets the table this observer belongs to.
|
boolean |
hasTableChanged()
Returns true if the table has changed.
|
boolean |
isDestroyed()
Returns true if this observer has been destroyed.
|
boolean hasTableChanged()
Table getTable()
TableDiff getDiff()
void destroy()
boolean isDestroyed()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.