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
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ResultReceiver
create()
void
deliver(Object o)
Send the object to the receiver.Object
get()
boolean
hasReceived()
-
-
-
Method Detail
-
deliver
void deliver(Object o)
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
static ResultReceiver create()
- Returns:
- default, not thread-safe implementation of the receiver
-
-