Class ManifestMaxIdOperation

java.lang.Object
io.bdeploy.bhive.BHive.Operation<Optional<Long>>
io.bdeploy.bhive.op.ManifestMaxIdOperation
All Implemented Interfaces:
BHiveExecution, Callable<Optional<Long>>

@ReadOnlyOperation public class ManifestMaxIdOperation extends BHive.Operation<Optional<Long>>
Returns the highest currently available version number for Manifests which use a simple counter versioning scheme.
  • Constructor Details

    • ManifestMaxIdOperation

      public ManifestMaxIdOperation()
  • Method Details

    • call

      public Optional<Long> call() throws Exception
      Throws:
      Exception
    • setManifestName

      public ManifestMaxIdOperation setManifestName(String name)
      Parameters:
      name - the name of the manifest to calculate a new version for. Note that this must be the full name of the manifest, not just a segment.
      Returns:
      the operation for chaining.