例:
class MyEndpoints {
@InboundChannelAdapter("channel")
public void cannotBeVoid() {...} // @InboundChannelAdapter アノテーションが付いたメソッドには戻り値の型を指定してください
@InboundChannelAdapter("channel")
public String cannotHaveParams(String s) {..} // @InboundChannelAdapter アノテーションが付いたメソッドは引数を持てません
@Filter(inputChannel = "channel", // エンドポイントには 1 つの poller しか指定できません
outputChannel = "channel2",
poller = {@Poller(fixedDelay = "100"), @Poller(fixedRate = "100")})
public void testMultiplePollers() {
}
@Filter(inputChannel = "channel",
outputChannel = "channel2",
poller = @Poller(value = "poller", maxMessagesPerPoll = "100"))
public void testValue() {
}
@Filter(inputChannel = "channel",
outputChannel = "channel2",
poller = @Poller(trigger = "trigger", cron = "0 */10 * * * *")) // 'trigger' 属性は他の属性と相互に排他的です
public void testTrigger() {
}
}