@InterfaceAudience.Private public class Canceler extends Object
Constructor and Description |
---|
Canceler() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason)
Requests that the current operation be canceled if it is still running.
|
String |
getCancellationReason() |
boolean |
isCancelled() |
public void cancel(String reason)
reason
- the reason why cancellation is requestedpublic boolean isCancelled()
public String getCancellationReason()
Copyright © 2013 Apache Software Foundation. All rights reserved.