public class FolderSyncController extends FolderWatcher
cache, location
Constructor and Description |
---|
FolderSyncController(Connection connection,
Location location) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(FolderListener listener) |
void |
disconnected() |
void |
folderChanged(Collection<Entry> added,
Collection<String> removed,
boolean full)
Provide changes to the listener
|
protected void |
handleError(Throwable e) |
void |
removeListener(FolderListener listener) |
void |
resync() |
void |
sync() |
getCache, getList, getLocation
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public FolderSyncController(Connection connection, Location location)
public void addListener(FolderListener listener)
public void removeListener(FolderListener listener)
public void sync()
public void resync()
protected void handleError(Throwable e)
public void folderChanged(Collection<Entry> added, Collection<String> removed, boolean full)
FolderListener
If either no items were added or removed the corresponding list must still be not null. The lists may not be altered by the listener implementations and may by unmodifiable.
folderChanged
in interface FolderListener
folderChanged
in class FolderWatcher
added
- the folder entries that were addedremoved
- the folder entries that where removedfull
- true
if this is not a change but a full
transmission, in this case the removed
parameter
must be empty or null
.public void disconnected()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.