예:
class MyEndpoints {
@InboundChannelAdapter("channel")
public void cannotBeVoid() {...} // @InboundChannelAdapter 어노테이션이 추가된 메서드에는 반환 타입이 있어야 합니다
@InboundChannelAdapter("channel")
public String cannotHaveParams(String s) {..} // A method annotated with @InboundChannelAdapter can't have arguments
@Filter(inputChannel = "channel", // 엔드포인트는 단 하나의 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() {
}
}