Package com.avoka.fc.core.stream
Class StreamConsumerFactory
java.lang.Object
com.avoka.fc.core.stream.StreamConsumerFactory
Provides a stream consumer factory which creates consumer based on service connection.
- Since:
- 24.4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IStreamConsumer
<?> getConsumer
(ServiceConnection serviceConnection) Returns a consumer based on the service connection type.
-
Constructor Details
-
StreamConsumerFactory
public StreamConsumerFactory()
-
-
Method Details
-
getConsumer
Returns a consumer based on the service connection type.- Parameters:
serviceConnection
- the service connection- Returns:
- an instance of IStreamProducer
- Throws:
ApplicationException
- if no suitable consumer is found for the service connection
-