Interface BatchResult.Callback<T,E> (2.8.27)

public static interface BatchResult.Callback<T,E>

An interface for the batch callbacks.

Type Parameters

NameDescription
T
E

Methods

error(E exception)

public abstract void error(E exception)

The method to be called when the batched operation fails.

Parameter
NameDescription
exceptionE

success(T result)

public abstract void success(T result)

The method to be called when the batched operation succeeds.

Parameter
NameDescription
resultT