Replacing Schedule with Trigger.

This commit is contained in:
Mark Fisher
2008-09-24 18:29:23 +00:00
parent 8b6f7be72c
commit ee7a8d0725
19 changed files with 102 additions and 111 deletions

View File

@@ -28,7 +28,7 @@ import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.endpoint.ChannelPoller;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.message.StringMessage;
import org.springframework.integration.scheduling.PollingSchedule;
import org.springframework.integration.scheduling.IntervalTrigger;
/**
* @author Mark Fisher
@@ -43,7 +43,7 @@ public class ByteStreamWritingMessageConsumerTests {
@Before
public void initialize() {
this.channel = new QueueChannel(10);
this.poller = new ChannelPoller(channel, new PollingSchedule(0));
this.poller = new ChannelPoller(channel, new IntervalTrigger(0));
}

View File

@@ -27,7 +27,7 @@ import org.springframework.integration.channel.QueueChannel;
import org.springframework.integration.endpoint.ChannelPoller;
import org.springframework.integration.message.GenericMessage;
import org.springframework.integration.message.StringMessage;
import org.springframework.integration.scheduling.PollingSchedule;
import org.springframework.integration.scheduling.IntervalTrigger;
/**
* @author Mark Fisher
@@ -42,7 +42,7 @@ public class CharacterStreamWritingMessageConsumerTests {
@Before
public void initialize() {
this.channel = new QueueChannel(10);
this.poller = new ChannelPoller(channel, new PollingSchedule(0));
this.poller = new ChannelPoller(channel, new IntervalTrigger(0));
}