Class TLfnFailFastRasterSessionHandler

java.lang.Object
com.luciad.fusion.engine.raster.TLfnFailFastRasterSessionHandler
All Implemented Interfaces:
ILfnRasterSessionHandler

public class TLfnFailFastRasterSessionHandler extends Object implements ILfnRasterSessionHandler
A simple raster session handler that logs a message and aborts the fusion if a failure occurs.
Since:
2012.0
  • Constructor Details

    • TLfnFailFastRasterSessionHandler

      public TLfnFailFastRasterSessionHandler()
    • TLfnFailFastRasterSessionHandler

      public TLfnFailFastRasterSessionHandler(ILcdLogger aLogger)
  • Method Details

    • handleFailure

      public boolean handleFailure(ILfnRasterSessionHandler.FailureContext aContext, Exception aFailure)
      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 use ALfnCoverageMetadata.isIgnoreNonFatalFailures() to enforce immediate abort.

      Specified by:
      handleFailure in interface ILfnRasterSessionHandler
      Parameters:
      aContext - the context where the failure occurred, never null
      aFailure - the error causing the failure
      Returns:
      true to ignore the failure and continue the session, false to abort the fusion session.