public class AcknowledgingEventSource<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
AcknowledgingEventSource<T> |
acknowledge(<any> ackFunction)
Provides the acknowledge consumer function
|
AcknowledgingEventSource<T> |
acknowledgeError(java.util.function.BiConsumer<java.lang.Throwable,T> ackErrorFunction)
Provides the acknowledge error consumer function
|
AcknowledgingEventSource<T> |
acknowledgeFilter(<any> ackFilter)
Provides the acknowledge filter predicate
|
void |
close() |
<any> |
connectPromise() |
void |
endOfStream() |
void |
error(java.lang.Throwable t) |
boolean |
isConnected() |
AcknowledgingEventSource<T> |
negativeAcknowledge(<any> nackFunction)
Provides the acknowledge consumer function
|
java.lang.AutoCloseable |
open(<any> aec) |
void |
publish(T event)
Publishes an event
|
public AcknowledgingEventSource<T> acknowledgeFilter(<any> ackFilter)
ackFilter - the predicate, can be nullpublic AcknowledgingEventSource<T> acknowledge(<any> ackFunction)
ackFunction - the acknowledge function, can be nullpublic AcknowledgingEventSource<T> negativeAcknowledge(<any> nackFunction)
ackFunction - the acknowledge function, can be nullpublic AcknowledgingEventSource<T> acknowledgeError(java.util.function.BiConsumer<java.lang.Throwable,T> ackErrorFunction)
ackFunction - the acknowledge error function, can be nullpublic void publish(T event)
event - the event to publishpublic java.lang.AutoCloseable open(<any> aec)
throws java.lang.Exception
java.lang.Exceptionpublic void close()
public void endOfStream()
public void error(java.lang.Throwable t)
public boolean isConnected()
public <any> connectPromise()
Data In Motion Consulting GmbH