jcommon.graph
Interface ITopologicalSortErrorCallback<TValue>

Type Parameters:
TValue - The type of Object that this error callback will operate on.

public interface ITopologicalSortErrorCallback<TValue>

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


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

Method Detail

handleError

void handleError(TValue value,
                 Throwable t,
                 IVertex<TValue> vertex,
                 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.