org.terracotta.async.errorhandlers
Class LoggingErrorHandler

java.lang.Object
  extended by 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

Constructor Summary
LoggingErrorHandler()
           
 
Method Summary
 void onError(ProcessingBucket bucket, Throwable exception)
          Called when a work item throws during execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingErrorHandler

public LoggingErrorHandler()
Method Detail

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 item
exception - the exception thrown


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.