Interface ReactiveConnectionSynchronization
public interface ReactiveConnectionSynchronization
Interface for the reactive connection synchronization callbacks.
- Since:
- 4.2.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.reactivestreams.Publisher<Void>
Invoked after the connection is closed.default org.reactivestreams.Publisher<Void>
onCancel()
Invoked when the connection operation is canceled.default org.reactivestreams.Publisher<Void>
onClose()
Invoked before the connection is closed.default org.reactivestreams.Publisher<Void>
Invoked when the connection operation execution is completed.default org.reactivestreams.Publisher<Void>
Invoked when the connection operation execution throws an exception.
-
Method Details
-
onComplete
Invoked when the connection operation execution is completed.- Returns:
- The publisher
-
onError
Invoked when the connection operation execution throws an exception.- Returns:
- The publisher
-
onCancel
Invoked when the connection operation is canceled.- Returns:
- The publisher
-
onClose
Invoked before the connection is closed. NOTE: this will be executed only when the physical connection is closed. Ordinary connection can be reused for multiple connection operations.- Returns:
- The publisher
-
afterClose
Invoked after the connection is closed. NOTE: this will be executed only when the physical connection is closed. Ordinary connection can be reused for multiple connection operations.- Returns:
- The publisher
-