Class UniquePackage

  • All Implemented Interfaces:
    Package

    public final class UniquePackage
    extends Object
    implements Package
    Implementation of Package that checks uniqueness of the packages index records.
    Since:
    0.5
    • Constructor Detail

      • UniquePackage

        public UniquePackage​(com.artipie.asto.Storage asto)
        Ctor.
        Parameters:
        asto - Abstract storage
    • Method Detail

      • add

        public CompletionStage<Void> add​(Iterable<String> items,
                                         com.artipie.asto.Key index)
        Description copied from interface: Package
        Adds item to the packages index.
        Specified by:
        add in interface Package
        Parameters:
        items - Index items to add
        index - Package index key
        Returns:
        Completion action