Interface ListenableAppStorage

  • All Superinterfaces:
    AppStorage, AutoCloseable

    public interface ListenableAppStorage
    extends AppStorage
    A listenable AppStorage. Listeners will be notified of NodeEvents happening on the storage: node creation, removal, etc. WARNING: you will need to keep a reference to your listeners, otherwise they may be garbage collected.
    Author:
    Geoffroy Jamgotchian
    • Method Detail

      • addListener

        void addListener​(AppStorageListener l)
        Add an AppStorageListener which will be notified of events happening on this storage. WARNING: you will need to keep a reference to your listeners, otherwise they may be garbage collected.
      • removeListeners

        void removeListeners()