org.terracotta.async
Interface AsyncErrorHandler

All Known Implementing Classes:
LoggingErrorHandler

public interface AsyncErrorHandler

Instances of AsyncErrorHandler are used to provide custom exception handling for async work items.


Method Summary
 void onError(ProcessingBucket bucket, Throwable exception)
          Called when a work item throws during execution.
 

Method Detail

onError

void onError(ProcessingBucket bucket,
             Throwable exception)
Called when a work item throws during execution.

Parameters:
bucket - the bucket executing the work item
exception - the exception thrown


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