Class StreamConsumerFactory

java.lang.Object
com.avoka.fc.core.stream.StreamConsumerFactory

public class StreamConsumerFactory extends Object
Provides a stream consumer factory which creates consumer based on service connection.
Since:
24.4.0
  • Constructor Details

    • StreamConsumerFactory

      public StreamConsumerFactory()
  • Method Details

    • getConsumer

      public static IStreamConsumer<?> getConsumer(ServiceConnection serviceConnection)
      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