The "defaultOutputChannelName" property of HandlerEndpoint is now "outputChannelName", and the "defaultOutput" attribute of the @MessageEndpoint annotation is now "output".
This commit is contained in:
@@ -24,7 +24,7 @@ import org.springframework.integration.annotation.Splitter;
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
@MessageEndpoint(input="orders", defaultOutput="drinks")
|
||||
@MessageEndpoint(input="orders", output="drinks")
|
||||
public class OrderSplitter {
|
||||
|
||||
@Splitter
|
||||
|
||||
@@ -30,7 +30,7 @@ public class Counter {
|
||||
|
||||
private AtomicInteger count = new AtomicInteger();
|
||||
|
||||
@Polled(period=3000)
|
||||
@Polled(initialDelay=1000, period=3000)
|
||||
public int getNumber() {
|
||||
return count.incrementAndGet();
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.integration.annotation.Polled;
|
||||
/**
|
||||
* @author Mark Fisher
|
||||
*/
|
||||
@MessageEndpoint(defaultOutput="quotes")
|
||||
@MessageEndpoint(output="quotes")
|
||||
public class QuotePublisher {
|
||||
|
||||
@Polled(period=300)
|
||||
|
||||
Reference in New Issue
Block a user