Class HvlLogProducerMQServiceImpl
java.lang.Object
tr.com.havelsan.javarch.log.producer.starter.mq.logic.HvlLogProducerMQServiceImpl
- All Implemented Interfaces:
HvlLogProducerService
A service which provides synchronous and asynchronous methods for logging with Mq.
-
Field Summary
Fields inherited from interface tr.com.havelsan.javarch.log.producer.starter.logic.HvlLogProducerService
DEFAULT_ERROR_MESSAGE
-
Constructor Summary
ConstructorDescriptionHvlLogProducerMQServiceImpl
(HvlLogProducerMQProvider producerMQProvider, HvlLogProducerJpaDataProvider producerJpaDataProvider, HvlLogProducerMQProperties producerProperties) Instantiates a new HvlLogProducerMQServiceImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
produceAsync
(@NotNull @Valid HvlEventLogModel eventLogModel) Asynchronous log operation.void
produceSync
(@NotNull @Valid HvlEventLogModel eventLogModel) Synchronous log operation.
-
Constructor Details
-
HvlLogProducerMQServiceImpl
public HvlLogProducerMQServiceImpl(HvlLogProducerMQProvider producerMQProvider, HvlLogProducerJpaDataProvider producerJpaDataProvider, HvlLogProducerMQProperties producerProperties) Instantiates a new HvlLogProducerMQServiceImpl.- Parameters:
producerMQProvider
- the producer mq providerproducerJpaDataProvider
- the producer jpa data providerproducerProperties
- the producer properties
-
-
Method Details
-
produceSync
public void produceSync(@NotNull @Valid @NotNull @Valid HvlEventLogModel eventLogModel) throws HvlLogProduceException Synchronous log operation.- Specified by:
produceSync
in interfaceHvlLogProducerService
- Parameters:
eventLogModel
- the event log model- Throws:
HvlLogProduceException
- the hvl log produce exception
-
produceAsync
Asynchronous log operation.- Specified by:
produceAsync
in interfaceHvlLogProducerService
- Parameters:
eventLogModel
- the event log model
-