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 ShutdownCommandstatic final ShutdownCommandprivate final CloseMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()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:CancellableCancels the ongoing operation or process.- Specified by:
cancelin interfaceCancellable- Returns:
trueif the operation or process has been cancelled as a result of this method call orfalseif it has already been cancelled or not started.
-
toString
-