Package com.arcadedb.database.async
Class AbstractAsyncResultsetCallback
- java.lang.Object
-
- com.arcadedb.database.async.AbstractAsyncResultsetCallback
-
- All Implemented Interfaces:
AsyncResultsetCallback
public abstract class AbstractAsyncResultsetCallback extends Object implements AsyncResultsetCallback
-
-
Constructor Summary
Constructors Constructor Description AbstractAsyncResultsetCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
Invoked when the fetching of the entire result set has been completed.void
onError(Exception exception)
Invoked in case of an error in the execution or fetching of the result set.boolean
onNext(Result result)
Invoked per single result in the result set.void
onStart(ResultSet resultset)
Invoked as soon as the command has been executed.
-
-
-
Method Detail
-
onStart
public void onStart(ResultSet resultset)
Description copied from interface:AsyncResultsetCallback
Invoked as soon as the command has been executed.- Specified by:
onStart
in interfaceAsyncResultsetCallback
- Parameters:
resultset
- result set to fetch
-
onNext
public boolean onNext(Result result)
Description copied from interface:AsyncResultsetCallback
Invoked per single result in the result set.- Specified by:
onNext
in interfaceAsyncResultsetCallback
- Returns:
- true to continue fetching otherwise false. If false is returned, the fetching stops and the
AsyncResultsetCallback.onComplete()
method is never invoked.
-
onComplete
public void onComplete()
Description copied from interface:AsyncResultsetCallback
Invoked when the fetching of the entire result set has been completed.- Specified by:
onComplete
in interfaceAsyncResultsetCallback
-
onError
public void onError(Exception exception)
Description copied from interface:AsyncResultsetCallback
Invoked in case of an error in the execution or fetching of the result set.- Specified by:
onError
in interfaceAsyncResultsetCallback
- Parameters:
exception
- The exception caught
-
-