Interface HvlLogProducerService

All Known Implementing Classes:
HvlLogProducerJpaServiceImpl, HvlLogProducerMQServiceImpl

@Validated public interface HvlLogProducerService
A service which provides synchronous and asynchronous methods for logging.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The constant DEFAULT_ERROR_MESSAGE.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    produceAsync(@NotNull @Valid HvlEventLogModel eventLogModel)
    Asynchronous log operation.
    void
    produceSync(@NotNull @Valid HvlEventLogModel eventLogModel)
    Synchronous log operation.
  • Field Details

    • DEFAULT_ERROR_MESSAGE

      static final String 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

      void produceAsync(@NotNull @Valid @NotNull @Valid HvlEventLogModel eventLogModel)
      Asynchronous log operation.
      Parameters:
      eventLogModel - the event log model