org.modeshape.jcr.cache.change

## Interface Observable

- All Known Subinterfaces:
    ChangeBus
  All Known Implementing Classes:
    ClusteredChangeBus, RepositoryChangeBus

      @ThreadSafe
      public interface Observable

  Interface used to register `listeners`. Implementations should use a `ChangeSetListener` to actually manage the listeners.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `register(ChangeSetListener observer)` Register the supplied observer.
    `boolean` | `unregister(ChangeSetListener observer)` Unregister the supplied observer.

- - ### Method Detail

    - #### register

          boolean register(ChangeSetListener observer)

      Register the supplied observer. This method does nothing if the observer reference is null.
      Parameters:
        `observer` - the observer to be added; may be null
      Returns:
        true if the observer was added, or false if the observer was null, if the observer was already registered, or if the observer could not be added

    - #### unregister

          boolean unregister(ChangeSetListener observer)

      Unregister the supplied observer. This method does nothing if the observer reference is null.
      Parameters:
        `observer` - the observer to be removed; may not be null
      Returns:
        true if the observer was removed, or false if the observer was null or if the observer was not registered on this source

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.