Package io.debezium.jdbc
Interface ResultReceiver
-
public interface ResultReceiverThis 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 ResultReceivercreate()voiddeliver(Object o)Send the object to the receiver.Objectget()booleanhasReceived()
-
-
-
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
-
-