Class NtsOutboxEventHelper
- java.lang.Object
-
- org.nentangso.core.service.helper.NtsOutboxEventHelper
-
@ConditionalOnProperty(prefix="nts.helper.outbox-event", name="enabled", havingValue="true") @Service public class NtsOutboxEventHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description NtsOutboxEventHelper(NtsOutboxEventRepository outboxEventRepository, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbatchQueue(String aggregateType, String eventType, List<?> payloads)voidqueue(String aggregateType, String eventType, Object payload)voidqueue(String aggregateType, String aggregateId, String eventType, Object payload, int aggregateVersion)voidqueue(String aggregateType, String aggregateId, String eventType, Object payload, String actor, int aggregateVersion, int businessVersion)
-
-
-
Constructor Detail
-
NtsOutboxEventHelper
public NtsOutboxEventHelper(NtsOutboxEventRepository outboxEventRepository, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
batchQueue
@Transactional public void batchQueue(String aggregateType, String eventType, List<?> payloads) throws IOException
- Throws:
IOException
-
queue
@Transactional public void queue(String aggregateType, String eventType, Object payload) throws IOException
- Throws:
IOException
-
queue
@Transactional public void queue(String aggregateType, String aggregateId, String eventType, Object payload, int aggregateVersion) throws IOException
- Throws:
IOException
-
queue
@Transactional public void queue(String aggregateType, String aggregateId, String eventType, Object payload, String actor, int aggregateVersion, int businessVersion) throws IOException
- Throws:
IOException
-
-