org.springframework.integration.annotation.Publisher Java Examples

The following examples show how to use org.springframework.integration.annotation.Publisher. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NotificationPublisherImpl.java    From event-store-demo with GNU General Public License v3.0 5 votes vote down vote up
@Publisher( channel = Source.OUTPUT )
public Message<String> sendNotification( Tuple event ) {

    String payload = converter.convert( event );

    return MessageBuilder
            .withPayload( payload )
            .setHeader( "x-delay", 1000 )
            .build();
}
 
Example #2
Source File: DomainEventSourceImpl.java    From event-store-demo with GNU General Public License v3.0 4 votes vote down vote up
@Publisher( channel = Source.OUTPUT )
public DomainEvent publish( final DomainEvent event ) {

    return event;
}
 
Example #3
Source File: PublishChannel.java    From functional-eventsourcing with Apache License 2.0 4 votes vote down vote up
@Publisher(channel = Source.OUTPUT)
public String send(String payload, @Header UUID uuid) {
    return payload;
}
 
Example #4
Source File: PublishChannel.java    From shop with Apache License 2.0 4 votes vote down vote up
@Publisher(channel = Source.OUTPUT)
public String send(String payload, @Header UUID uuid) {
    return payload;
}
 
Example #5
Source File: PublishChannel.java    From functional-eventsourcing with Apache License 2.0 4 votes vote down vote up
@Publisher(channel = Source.OUTPUT)
public String send(String payload, @Header UUID uuid) {
    return payload;
}