Interface Observable

All Known Implementing Classes:
BranchNodeStore, ChangeDispatcher, CompositeNodeStore, COWNodeStore, DocumentNodeStore, MemoryNodeStore, SegmentNodeStore

public interface Observable
An Observable supports attaching Observer instances for listening to content changes.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Register a new Observer.
  • Method Details

    • addObserver

      Closeable addObserver(Observer observer)
      Register a new Observer. Clients need to call Closeable.close() to stop getting notifications on the registered observer and to free up any resources associated with the registration.
      Returns:
      a Closeable instance.