public interface DataStoreGarbageCollector
Example code to run the data store garbage collection:
JackrabbitRepositoryFactory jf = (JackrabbitRepositoryFactory) factory; RepositoryManager m = jf.getRepositoryManager((JackrabbitRepository) repository); GarbageCollector gc = m.createDataStoreGarbageCollector(); gc.mark(); gc.sweep();
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleanup resources used internally by this instance.
|
long |
getSleepBetweenNodes()
Get the delay between scanning items.
|
boolean |
isPersistenceManagerScan()
Check if using the IterablePersistenceManager interface is allowed.
|
void |
mark()
Scan the repository.
|
void |
setMarkEventListener(MarkEventListener callback)
Set the event listener.
|
void |
setPersistenceManagerScan(boolean allow)
Enable or disable using the IterablePersistenceManager interface
to scan the items.
|
void |
setSleepBetweenNodes(long millis)
Set the delay between scanning items.
|
int |
sweep()
Delete all unused items in the data store.
|
void setSleepBetweenNodes(long millis)
millis
- the number of milliseconds to sleeplong getSleepBetweenNodes()
void setMarkEventListener(MarkEventListener callback)
callback
- if set, this is called while scanningvoid setPersistenceManagerScan(boolean allow)
allow
- true if using the IterablePersistenceManager interface is allowedboolean isPersistenceManagerScan()
void mark() throws RepositoryException
RepositoryException
int sweep() throws RepositoryException
RepositoryException
void close()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"