jcommon.graph
Interface ITopologicalSortErrorCallback<TVertex extends IVertex>

Type Parameters:
TVertex - The type of IVertex that this error callback will operate on.

public interface ITopologicalSortErrorCallback<TVertex extends IVertex>

A callback for when an error has occurred during asynchronous processing.


Method Summary
 void handleError(TVertex vertex, Throwable t, ITopologicalSortCoordinator coordinator)
          The callback that will be executed inside a thread pool other than the one invoking the sort.
 

Method Detail

handleError

void handleError(TVertex vertex,
                 Throwable t,
                 ITopologicalSortCoordinator coordinator)
The callback that will be executed inside a thread pool other than the one invoking the sort.

Parameters:
vertex - Instance of IVertex of type TVertex that produced the error. Could be null.
t - Exception that was thrown.
coordinator - Instance of ITopologicalSortCoordinator that allows for communication between asynchronous sorting submissions done by the driver (which is typically done by an instance of ITopologicalSortStrategy).


Copyright © 2012-2013. All Rights Reserved.