Package core.apiCore.interfaces
Class KafkaInterface
- java.lang.Object
-
- core.apiCore.interfaces.KafkaInterface
-
public class KafkaInterface extends Object
- Author:
- ehsan.matean
-
-
Field Summary
Fields Modifier and Type Field Description static StringKAFKA_CLIENT_IDstatic StringKAFKA_GROUP_IDstatic StringKAFKA_MESSAGE_ID_PREFIXstatic StringKAFKA_SERVER_URLstatic StringKAFKA_TIMEOUT_SECONDSstatic StringKFAKA_OUTBOUND_TOPICstatic StringKFAKA_TOPICstatic Map<org.apache.kafka.clients.consumer.ConsumerRecord<String,String>,Boolean>outboundMessages
-
Constructor Summary
Constructors Constructor Description KafkaInterface()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidevaluateOption(ServiceObject serviceObject)static voidgetOutboundMessages()gets message from outbound queue Adds messages to ouboutMessage hashmapstatic voidsendKafkaMessage(ServiceObject serviceObject, String messageId)send kafka messagestatic voidtestKafkaInterface(ServiceObject serviceObject)interface for database calls
-
-
-
Field Detail
-
KAFKA_SERVER_URL
public static final String KAFKA_SERVER_URL
- See Also:
- Constant Field Values
-
KAFKA_CLIENT_ID
public static final String KAFKA_CLIENT_ID
- See Also:
- Constant Field Values
-
KFAKA_TOPIC
public static final String KFAKA_TOPIC
- See Also:
- Constant Field Values
-
KFAKA_OUTBOUND_TOPIC
public static final String KFAKA_OUTBOUND_TOPIC
- See Also:
- Constant Field Values
-
KAFKA_GROUP_ID
public static final String KAFKA_GROUP_ID
- See Also:
- Constant Field Values
-
KAFKA_TIMEOUT_SECONDS
public static final String KAFKA_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
KAFKA_MESSAGE_ID_PREFIX
public static final String KAFKA_MESSAGE_ID_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
testKafkaInterface
public static void testKafkaInterface(ServiceObject serviceObject) throws Exception
interface for database calls- Parameters:
serviceObject-- Throws:
Exception
-
sendKafkaMessage
public static void sendKafkaMessage(ServiceObject serviceObject, String messageId)
send kafka message- Parameters:
serviceObject-
-
getOutboundMessages
public static void getOutboundMessages()
gets message from outbound queue Adds messages to ouboutMessage hashmap- Parameters:
receiver-
-
evaluateOption
public static void evaluateOption(ServiceObject serviceObject)
-
-