public class ShutdownArgs extends Object implements CompositeArgument
ShutdownArgs.Builder and call the methods: now(…) .
ShutdownArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
ShutdownArgs.Builder
Builder entry points for
ShutdownArgs. |
| Constructor and Description |
|---|
ShutdownArgs() |
| Modifier and Type | Method and Description |
|---|---|
ShutdownArgs |
abort()
Cancels an ongoing shutdown and cannot be combined with other flags.
|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
ShutdownArgs |
force()
Ignores any errors that would normally prevent the server from exiting.
|
ShutdownArgs |
now()
Skips waiting for lagging replicas, i.e. it bypasses the first step in the shutdown sequence.
|
ShutdownArgs |
save(boolean save)
Will force a DB saving operation even if no save points are configured.
|
public ShutdownArgs save(boolean save)
save - true force save operation.thispublic ShutdownArgs now()
thispublic ShutdownArgs force()
thispublic ShutdownArgs abort()
thispublic <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
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.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2025 lettuce.io. All rights reserved.