Package io.debezium.jdbc
Interface ResultReceiver
public interface ResultReceiver
This interface allows the code to optionally pass a value between two parts of the application.
- Author:
- Jiri Pechanec
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResultReceiver
create()
void
Send the object to the receiver.get()
boolean
-
Method Details
-
deliver
Send the object to the receiver.- Parameters:
o
- - object to be delivered
-
hasReceived
boolean hasReceived()- Returns:
- true if a value has been sent to the receiver
-
get
Object get()- Returns:
- the object sent to the receiver
-
create
- Returns:
- default, not thread-safe implementation of the receiver
-