Package com.luciad.fusion.tilestore
Interface ILfnFailureHandler
- All Known Subinterfaces:
ILfnDeleteTileHandler
,ILfnExportHandler
,ILfnGetTileHandler
,ILfnImportHandler
,ILfnPutTileHandler
,ILfnQueryHandler
,ILfnServiceFailureHandler
public interface ILfnFailureHandler
A base handler to handle failures and interrupts which are common to all asynchronous operations. It is the
asynchronous equivalent of a 'throws' clause of a synchronous method. All asynchronous methods require an
asynchronous handler which is an extension of this interface.
Each of these methods indicates the end of the interaction with this handler.
- Since:
- 10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelled
(CancellationException aException) Indicates that the task has been cancelled.void
interrupted
(InterruptedException aException) Indicates that the request has been interrupted.void
threw
(IOException aException) Indicates an I/O failure.void
Indicates an internal error.void
threw
(RuntimeException aException) Indicates a runtime exception.
-
Method Details
-
cancelled
Indicates that the task has been cancelled. Cancellation of a task is typically done via acancel()
call on theFuture
of the task.- Parameters:
aException
- the associated cancellation exception- Since:
- 2012.0
-
interrupted
Indicates that the request has been interrupted. Interruption is triggered by an explicit request, for instance to shut down.- Parameters:
aException
- the associated interrupted exception.
-
threw
Indicates an I/O failure. These failures should be dealt with by the caller.- Parameters:
aException
- the associated I/O exception
-
threw
Indicates a runtime exception. These exceptions can typically not be dealt with by the caller.- Parameters:
aException
- the associated exception
-
threw
Indicates an internal error. These internal errors can typically not be dealt with by the caller.- Parameters:
aError
- the associated error
-