public final class ShutdownCommand extends Object implements Command
CloseMode.GRACEFUL
and
CloseMode.IMMEDIATE
. The exact implementation of both modes is protocol or handler
specific.Command.Priority
Modifier and Type | Field and Description |
---|---|
static ShutdownCommand |
GRACEFUL |
static Callback<IOSession> |
GRACEFUL_IMMEDIATE_CALLBACK |
static Callback<IOSession> |
GRACEFUL_NORMAL_CALLBACK |
static ShutdownCommand |
IMMEDIATE |
Constructor and Description |
---|
ShutdownCommand(CloseMode type) |
public static final ShutdownCommand GRACEFUL
public static final ShutdownCommand IMMEDIATE
public ShutdownCommand(CloseMode type)
public CloseMode getType()
public boolean cancel()
Cancellable
cancel
in interface Cancellable
true
if the operation or process has been cancelled as a result of
this method call or false
if it has already been cancelled or not started.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.