Interface TileErrorHandler.Executor
- All Known Implementing Classes:
PrefetchedImage
- Enclosing class:
TileErrorHandler
public static interface TileErrorHandler.Executor
An object executing actions in a way where errors occurring during tile computation
are reported to an error handler instead of causing the whole operation to fail.
This interface is currently used as a workaround for accessing
PrefetchedImage
without making that class public.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Runnable action, TileErrorHandler errorHandler) Executes the given action in a mode where errors occurring inRenderedImage.getTile(int, int)
are reported to the given handler instead of stopping the operation.
-
Method Details
-
execute
Executes the given action in a mode where errors occurring inRenderedImage.getTile(int, int)
are reported to the given handler instead of stopping the operation.- Parameters:
action
- the action to execute (for example drawing the image).errorHandler
- the handler to notify if errors occur.
-