org.terracotta.async.errorhandlers
Class LoggingErrorHandler
java.lang.Object
org.terracotta.async.errorhandlers.LoggingErrorHandler
- All Implemented Interfaces:
- AsyncErrorHandler
public class LoggingErrorHandler
- extends Object
- implements AsyncErrorHandler
LoggingErrorHandler logs all processing errors to a JDK Logger
- See Also:
Logger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingErrorHandler
public LoggingErrorHandler()
onError
public void onError(ProcessingBucket bucket,
Throwable exception)
- Description copied from interface:
AsyncErrorHandler
- Called when a work item throws during execution.
- Specified by:
onError in interface AsyncErrorHandler
- Parameters:
bucket - the bucket executing the work itemexception - the exception thrown
Copyright © 2015 Terracotta, Inc.. All Rights Reserved.