Interface PersistenceProducer
public interface PersistenceProducer
Spring cloud data channel description for messaging output. This channel is primarily responsible
for async IO related to notifying services about persistence state change for entities.
When sending messages over this channel consider using PersistenceMessage
as all
consumers will generally expect messages in that format. Instead of doing this:
producer.persistenceOutput() .send(MessageBuilder.withPayload(persisted).build());Wrap it in a PersistenceMessage like this:
producer.persistenceOutput() .send(MessageBuilder.withPayload(new PersistenceMessage(objToSend)).build());
- Author:
- Samarth Dhruva (samarthd)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.MessageChannel
-
Field Details
-
TYPE
- See Also:
-
-
Method Details
-
persistenceOutput
@Output org.springframework.messaging.MessageChannel persistenceOutput()
-