@ThreadSafe public class BackupObserver extends Object implements ChangeSetListener
ChangeSetListener
that captures the changes being made in a repository, forwarding the node and property changes to
the supplied queue, and capturing the set of binary keys that are marked as being used or unused.BackupService
Modifier | Constructor and Description |
---|---|
protected |
BackupObserver(Queue<NodeKey> changedNodes) |
Modifier and Type | Method and Description |
---|---|
Iterable<BinaryKey> |
getUnusedBinaryKeys()
Get the binary keys that have been marked as being unused during the time this observer was listening to the repository.
|
Iterable<BinaryKey> |
getUsedBinaryKeys()
Get the binary keys that have been marked as being used during the time this observer was listening to the repository.
|
void |
notify(ChangeSet changeSet)
Notifies a listener of the given changes.
|
public void notify(ChangeSet changeSet)
ChangeSetListener
notify
in interface ChangeSetListener
changeSet
- a non-null
ChangeSet
public Iterable<BinaryKey> getUnusedBinaryKeys()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.