Package nl.knaw.dans.layerstore
Class ConsistencyCheckingAsyncLayerArchiver
java.lang.Object
nl.knaw.dans.layerstore.ConsistencyCheckingAsyncLayerArchiver
- All Implemented Interfaces:
LayerArchiver
A
LayerArchiver that archives layers in a separate thread. It also checks that the items found on storage are the same as the items found in the database for the layer.-
Constructor Summary
ConstructorsConstructorDescriptionConsistencyCheckingAsyncLayerArchiver(LayerConsistencyChecker consistencyChecker, Executor executor) -
Method Summary
-
Constructor Details
-
ConsistencyCheckingAsyncLayerArchiver
public ConsistencyCheckingAsyncLayerArchiver(LayerConsistencyChecker consistencyChecker, Executor executor)
-
-
Method Details
-
archive
Description copied from interface:LayerArchiverArchives the specified layer.Implementations must invoke the action exactly once, synchronously or asynchronously.
- Specified by:
archivein interfaceLayerArchiver- Parameters:
layerId- the id of the layer to archivearchiveAction- the action that performs the archiving
-