Class ShutdownCommand
java.lang.Object
org.apache.hc.core5.http.nio.command.ShutdownCommand
- All Implemented Interfaces:
Cancellable
,Command
Shutdown command. Two shutdown modes are supported:
CloseMode.GRACEFUL
and
CloseMode.IMMEDIATE
. The exact implementation of both modes is protocol or handler
specific.- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hc.core5.reactor.Command
Command.Priority
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShutdownCommand
static final ShutdownCommand
private final CloseMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Cancels the ongoing operation or process.createIOSessionCallback
(Command.Priority priority) getType()
toString()
-
Field Details
-
GRACEFUL
-
IMMEDIATE
-
GRACEFUL_IMMEDIATE_CALLBACK
-
GRACEFUL_NORMAL_CALLBACK
-
type
-
-
Constructor Details
-
ShutdownCommand
-
-
Method Details
-
createIOSessionCallback
-
getType
-
cancel
public boolean cancel()Description copied from interface:Cancellable
Cancels the ongoing operation or process.- Specified by:
cancel
in interfaceCancellable
- Returns:
true
if the operation or process has been cancelled as a result of this method call orfalse
if it has already been cancelled or not started.
-
toString
-