Package org.tmatesoft.svn.core
Interface ISVNCanceller
-
- All Known Subinterfaces:
ISVNAdminEventHandler,ISVNEventHandler
- All Known Implementing Classes:
SVNAdminBasicClient,SVNAdminClient,SVNAdminEventAdapter,SVNEventAdapter,SVNLookClient,SVNRepositoryReplicator
public interface ISVNCancellerThe ISVNCanceller interface is used inSVNKitfor cancelling operations. To cancel a running operation an implementor should throw anSVNCancelExceptionfrom hischeckCancelled()implementation. This method is called in plenty ofSVNKitmethods to give a user a chance to cancel a current running operation. For example, it could be a GUI application where a 'cancel' button would make the implementor'scheckCancelled()method throw such an exception.- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Field Summary
Fields Modifier and Type Field Description static ISVNCancellerNULLDefault implementation which never throws anSVNCancelException(never cancels).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckCancelled()Checks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists.
-
-
-
Field Detail
-
NULL
static final ISVNCanceller NULL
Default implementation which never throws anSVNCancelException(never cancels).
-
-
Method Detail
-
checkCancelled
void checkCancelled() throws SVNCancelExceptionChecks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists. This method is often called during iterations when processing trees of versioned items. This way the entire operation may be interrupted without waiting till the iteration run out.- Throws:
SVNCancelException
-
-