ThreadPoolTaskExecutor taskExecutor,
InfoChannel infoChannel,
Consumer<String, AbstractMessageTo> infoChannelConsumer,
- ConsumerTaskExecutor.WorkAssignor infoChannelWorkAssignor)
+ WorkAssignor infoChannelWorkAssignor)
{
return new ConsumerTaskExecutor(
taskExecutor,
}
@Bean
- ConsumerTaskExecutor.WorkAssignor infoChannelWorkAssignor(
- ChatBackendProperties properties)
+ WorkAssignor infoChannelWorkAssignor(ChatBackendProperties properties)
{
return consumer ->
{
ThreadPoolTaskExecutor taskExecutor,
DataChannel dataChannel,
Consumer<String, AbstractMessageTo> dataChannelConsumer,
- ConsumerTaskExecutor.WorkAssignor dataChannelWorkAssignor)
+ WorkAssignor dataChannelWorkAssignor)
{
return new ConsumerTaskExecutor(
taskExecutor,
}
@Bean
- ConsumerTaskExecutor.WorkAssignor dataChannelWorkAssignor(
+ WorkAssignor dataChannelWorkAssignor(
ChatBackendProperties properties,
DataChannel dataChannel)
{
--- /dev/null
+package de.juplo.kafka.chat.backend.implementation.kafka;
+
+import org.apache.kafka.clients.consumer.Consumer;
+
+
+public interface WorkAssignor
+{
+ void assignWork(Consumer<?, ?> consumer);
+}