Interface PersistenceProducer
-
public interface PersistenceProducerSpring 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
PersistenceMessageas 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)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.messaging.MessageChannelpersistenceOutput()
-
-
-
Field Detail
-
TYPE
static final String TYPE
- See Also:
- Constant Field Values
-
-