T - response type expected (Void if no object, but null is expected)public interface DeferredResponse<T>
GDS-ng implementations which are not capable of asynchronous or delayed processing of responses are expected to
synchronously invoke the onResponse(Object) and - optionally - onException(Exception)
methods within the method call.
| Modifier and Type | Method and Description |
|---|---|
default void |
onException(java.lang.Exception exception)
Exception received when receiving or processing the response.
|
default void |
onResponse(T response)
Called with successful response.
|
default void onResponse(T response)
response - response object, or null if there is no response, but the request completed successfullydefault void onException(java.lang.Exception exception)
The default implementation only logs the exception on debug level.
For GDS-ng implementations that can only perform synchronous processing, it is implementation-defined whether or not this method is called, or if the exception is thrown directly from the invoked method.
exception - exception received processing the responseCopyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.