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| 限定符和类型 | 字段和说明 |
|---|---|
static ShutdownCommand |
GRACEFUL |
static Callback<IOSession> |
GRACEFUL_IMMEDIATE_CALLBACK |
static Callback<IOSession> |
GRACEFUL_NORMAL_CALLBACK |
static ShutdownCommand |
IMMEDIATE |
| 构造器和说明 |
|---|
ShutdownCommand(CloseMode type) |
public static final ShutdownCommand GRACEFUL
public static final ShutdownCommand IMMEDIATE
public ShutdownCommand(CloseMode type)
public CloseMode getType()
public boolean cancel()
Cancellablecancel 在接口中 Cancellabletrue 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 © 2023. All rights reserved.