Class ShutdownArgs

    • Constructor Detail

      • ShutdownArgs

        public ShutdownArgs()
    • Method Detail

      • save

        public ShutdownArgs save​(boolean save)
        Will force a DB saving operation even if no save points are configured.
        Parameters:
        save - true force save operation.
        Returns:
        this
      • now

        public ShutdownArgs now()
        Skips waiting for lagging replicas, i.e. it bypasses the first step in the shutdown sequence.
        Returns:
        this
      • force

        public ShutdownArgs force()
        Ignores any errors that would normally prevent the server from exiting.
        Returns:
        this
      • abort

        public ShutdownArgs abort()
        Cancels an ongoing shutdown and cannot be combined with other flags.
        Returns:
        this
      • build

        public <K,​V> void build​(CommandArgs<K,​V> args)
        Description copied from interface: CompositeArgument
        Build command arguments and contribute arguments to CommandArgs.

        Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.

        Specified by:
        build in interface CompositeArgument
        Type Parameters:
        K - Key type.
        V - Value type.
        Parameters:
        args - the command arguments, must not be null.