Class PostUploadHookChain

  • All Implemented Interfaces:
    PostUploadHook

    public class PostUploadHookChain
    extends java.lang.Object
    implements PostUploadHook
    PostUploadHook that delegates to a list of other hooks.

    Hooks are run in the order passed to the constructor.

    Since:
    4.1
    • Constructor Detail

      • PostUploadHookChain

        private PostUploadHookChain​(java.util.List<PostUploadHook> hooks)
    • Method Detail

      • newChain

        public static PostUploadHook newChain​(java.util.List<PostUploadHook> hooks)
        Create a new hook chaining the given hooks together.
        Parameters:
        hooks - hooks to execute, in order.
        Returns:
        a new chain of the given hooks.