@Test public void testExceptionHandlingWhenClosed() throws Exception{ buildKafkaWIH(true); mockProducerString.close(); assertExceptionAfterExecuteWorkItem(workItem); }
@Override public void close() { if (producer != null) { producer.flush(); producer.close(); } }
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } }
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } KafkaWorkItemHandler(Producer producer);  KafkaWorkItemHandler(String bootstrapServers,
                                String clientId,
                                String keySerializerClass,
                                String valueSerializerClass,
                                ClassLoader classLoader);  KafkaWorkItemHandler(String bootstrapServers,
                                String clientId,
                                String keySerializerClass,
                                String valueSerializerClass); }
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } KafkaWorkItemHandler(Producer producer);  KafkaWorkItemHandler(String bootstrapServers,
                                String clientId,
                                String keySerializerClass,
                                String valueSerializerClass,
                                ClassLoader classLoader);  KafkaWorkItemHandler(String bootstrapServers,
                                String clientId,
                                String keySerializerClass,
                                String valueSerializerClass); void executeWorkItem(WorkItem workItem,
                                WorkItemManager manager); void abortWorkItem(WorkItem workItem,
                              WorkItemManager manager); @Override void close(); }
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } KafkaWorkItemHandler(Producer producer);  KafkaWorkItemHandler(String bootstrapServers,
                                String clientId,
                                String keySerializerClass,
                                String valueSerializerClass,
                                ClassLoader classLoader);  KafkaWorkItemHandler(String bootstrapServers,
                                String clientId,
                                String keySerializerClass,
                                String valueSerializerClass); void executeWorkItem(WorkItem workItem,
                                WorkItemManager manager); void abortWorkItem(WorkItem workItem,
                              WorkItemManager manager); @Override void close();  }