public class Cancellation extends Object
Learn more
Constructor and Description |
---|
Cancellation()
Initializes a new instance of the
Cancellation class. |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Makes a request for cancellation.
|
void |
cancelAfter(int milliseconds)
Makes a request for cancellation after the expiration of specified number of milliseconds.
|
protected void |
finalize()
Finalizes an instance of the
Cancellation class. |
boolean |
isCancelled()
Gets a value indicating that cancellation has been requested.
|
public Cancellation()
Initializes a new instance of the Cancellation
class.
protected void finalize() throws Throwable
Finalizes an instance of the Cancellation
class.
public final boolean isCancelled()
Gets a value indicating that cancellation has been requested.
public final void cancel()
Makes a request for cancellation.
public final void cancelAfter(int milliseconds)
Makes a request for cancellation after the expiration of specified number of milliseconds.
milliseconds
- The number of milliseconds after which an operation will be cancelled.