Class DirectLayerArchiver

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

public class DirectLayerArchiver extends Object implements LayerArchiver
A LayerArchiver that archives layers directly (synchronously), not performing any consistency checks.
  • Constructor Details

    • DirectLayerArchiver

      public DirectLayerArchiver()
  • 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