Interface HvlLogProducerService
- All Known Implementing Classes:
HvlLogProducerJpaServiceImpl
,HvlLogProducerMQServiceImpl
@Validated
public interface HvlLogProducerService
A service which provides synchronous and asynchronous methods for logging.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
produceAsync
(@NotNull @Valid HvlEventLogModel eventLogModel) Asynchronous log operation.void
produceSync
(@NotNull @Valid HvlEventLogModel eventLogModel) Synchronous log operation.
-
Field Details
-
DEFAULT_ERROR_MESSAGE
The constant DEFAULT_ERROR_MESSAGE.- See Also:
-
-
Method Details
-
produceSync
void produceSync(@NotNull @Valid @NotNull @Valid HvlEventLogModel eventLogModel) throws HvlLogProduceException Synchronous log operation.- Parameters:
eventLogModel
- the event log model- Throws:
HvlLogProduceException
- the hvl log produce exception
-
produceAsync
Asynchronous log operation.- Parameters:
eventLogModel
- the event log model
-