Interface IStreamProducer<V>
- All Known Implementing Classes:
KafkaStreamProducer
,MockKafkaStreamProducer
public interface IStreamProducer<V>
Provide a producer interface.
- Since:
- 22.10.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendToStream
(ServiceConnection serviceConnection, String streamName, String key, String content, StreamCallback<V> callback) Asynchronously send content to the streamName.void
sendToStream
(ServiceConnection serviceConnection, String streamName, String partitionKey, String key, String content, StreamCallback<V> callback) Asynchronously send content to the streamName.
-
Method Details
-
sendToStream
void sendToStream(ServiceConnection serviceConnection, String streamName, String key, String content, StreamCallback<V> callback) Asynchronously send content to the streamName.- Parameters:
serviceConnection
- the service connectionstreamName
- the stream namekey
- the keycontent
- the content which should be sentcallback
- the callback method which the user can implement to provide asynchronous handling of request completion
-
sendToStream
void sendToStream(ServiceConnection serviceConnection, String streamName, String partitionKey, String key, String content, StreamCallback<V> callback) Asynchronously send content to the streamName.- Parameters:
serviceConnection
- the service connectionstreamName
- the stream namepartitionKey
- the partitionKeykey
- the keycontent
- the content which should be sentcallback
- the callback method which the user can implement to provide asynchronous handling of request completion
-