Package com.luciad.fusion.engine.raster
Class TLfnFailFastRasterSessionHandler
java.lang.Object
com.luciad.fusion.engine.raster.TLfnFailFastRasterSessionHandler
- All Implemented Interfaces:
ILfnRasterSessionHandler
A simple raster session handler that logs a message and aborts the fusion if a failure occurs.
- Since:
- 2012.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.fusion.engine.raster.ILfnRasterSessionHandler
ILfnRasterSessionHandler.FailureContext
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
handleFailure
(ILfnRasterSessionHandler.FailureContext aContext, Exception aFailure) Notifies the handler of a failure and determines whether to abort or continue the session.
-
Constructor Details
-
TLfnFailFastRasterSessionHandler
public TLfnFailFastRasterSessionHandler() -
TLfnFailFastRasterSessionHandler
-
-
Method Details
-
handleFailure
Description copied from interface:ILfnRasterSessionHandler
Notifies the handler of a failure and determines whether to abort or continue the session. When continuing the session, the tile will be retried and the offending asset will be ignored.Note that the fusion process may continue for a while, even if you return
false
. It is better to useALfnCoverageMetadata.isIgnoreNonFatalFailures()
to enforce immediate abort.- Specified by:
handleFailure
in interfaceILfnRasterSessionHandler
- Parameters:
aContext
- the context where the failure occurred, nevernull
aFailure
- the error causing the failure- Returns:
true
to ignore the failure and continue the session,false
to abort the fusion session.
-