Class ConsistencyCheckingAsyncLayerArchiver

java.lang.Object
nl.knaw.dans.layerstore.ConsistencyCheckingAsyncLayerArchiver
All Implemented Interfaces:
LayerArchiver

public class ConsistencyCheckingAsyncLayerArchiver extends Object implements 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 Details

  • Method Details

    • archive

      public void archive(long layerId, Runnable archiveAction)
      Description copied from interface: LayerArchiver
      Archives the specified layer.

      Implementations must invoke the action exactly once, synchronously or asynchronously.

      Specified by:
      archive in interface LayerArchiver
      Parameters:
      layerId - the id of the layer to archive
      archiveAction - the action that performs the archiving