@Internal public final class StaleCheckCommand extends Object implements Command
callback will be invoked after the client's event loop has finished processing
all pending reads on the connection. If the connection is still active at that point, the callback will be completed
with true. In any other event, the callback will be cancelled, failed, or completed with false.Command.Priority| Constructor and Description |
|---|
StaleCheckCommand(Consumer<Boolean> callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancels the ongoing operation or process.
|
Consumer<Boolean> |
getCallback() |
public boolean cancel()
Cancellablecancel in interface 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 © 2005–2021 The Apache Software Foundation. All rights reserved.