Package org.gvsig.compat.net
Interface ICancellable
public interface ICancellable
When a task is accessing to remote data, takes an indeterminate time, and occasionally gets locked. That's the reason a task should support to be cancelable.
ICancellable interface is designed for getting information about
the cancellation of a task of downloading remote information.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetID()Used to cancel only a group of downloads tasks with the same identifier.booleanReturnstrueif a download or a group of downloads tasks has been canceled.
-
Field Details
-
DUMB
-
-
Method Details
-
isCanceled
boolean isCanceled()Returns
trueif a download or a group of downloads tasks has been canceled.- Returns:
trueif a download or a group of downloads tasks has been canceled, otherwisefalse
-
getID
Object getID()Used to cancel only a group of downloads tasks with the same identifier.
- Returns:
- the identifier
-