Package com.couchbase.client.core.hooks
Interface CouchbaseCoreSendHook
-
@Public @Experimental public interface CouchbaseCoreSendHook
This hook allows to intercept and modify theCouchbaseRequest
in the path of theCouchbaseCore.send(CouchbaseRequest)
method.- Since:
- 1.4.8
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tuple2<CouchbaseRequest,rx.Observable<CouchbaseResponse>>
beforeSend(CouchbaseRequest originalRequest, rx.Observable<CouchbaseResponse> originalResponse)
Allows to hook in before the send method on core, make sure to return either the original tuple or the modified ones from the originals.
-
-
-
Method Detail
-
beforeSend
@Public @Experimental Tuple2<CouchbaseRequest,rx.Observable<CouchbaseResponse>> beforeSend(CouchbaseRequest originalRequest, rx.Observable<CouchbaseResponse> originalResponse)
Allows to hook in before the send method on core, make sure to return either the original tuple or the modified ones from the originals. This is fairly advanced API, use with care!- Parameters:
originalRequest
- the original requestoriginalResponse
- the original response.- Returns:
-
-