org.fuin.utils4j
Interface Cancelable

All Known Implementing Classes:
CancelableVolatile

public interface Cancelable

A unit of work that is cancelable.


Method Summary
 void cancel()
          Try to cancel the unit of work.
 boolean isCanceled()
          Returns if the unit of work was canceled.
 

Method Detail

cancel

void cancel()
Try to cancel the unit of work.


isCanceled

boolean isCanceled()
Returns if the unit of work was canceled.

Returns:
If it was canceled true else false.


Copyright © 2009 Future Invent Informationsmanagement GmbH. All Rights Reserved.