public interface ListenableAppStorage extends AppStorage
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.Modifier and Type | Method and Description |
---|---|
void |
addListener(AppStorageListener l)
Add an
AppStorageListener which will be notified of events happening on this storage. |
void |
removeListener(AppStorageListener l) |
void |
removeListeners() |
addDependency, addDoubleTimeSeriesData, addStringTimeSeriesData, clearTimeSeries, close, createNode, createRootNodeIfNotExists, createTimeSeries, dataExists, deleteNode, flush, getBackwardDependencies, getChildNode, getChildNodes, getDataNames, getDependencies, getDependencies, getDoubleTimeSeriesData, getFileSystemName, getInconsistentNodes, getNodeInfo, getParentNode, getStringTimeSeriesData, getTimeSeriesDataVersions, getTimeSeriesDataVersions, getTimeSeriesMetadata, getTimeSeriesNames, isClosed, isConsistent, isRemote, isWritable, readBinaryData, removeData, removeDependency, renameNode, setConsistent, setDescription, setParentNode, timeSeriesExists, updateModificationTime, writeBinaryData
void addListener(AppStorageListener l)
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.void removeListener(AppStorageListener l)
void removeListeners()
Copyright © 2019. All rights reserved.