use of com.lmax.disruptor.spring.boot.event.DisruptorBindEvent in project spring-boot-starter-samples by vindell.
the class DisruptorConfig method send.
// 每1s执行1次
@Scheduled(fixedDelay = 1000)
public void send() throws Exception {
DisruptorBindEvent event = new DisruptorBindEvent(this, "message " + Math.random());
event.setEvent("Event-Output");
event.setTag("TagA-Output");
event.setKey("id-" + Math.random());
disruptorTemplate.publishEvent(event);
}
use of com.lmax.disruptor.spring.boot.event.DisruptorBindEvent in project spring-boot-starter-samples by vindell.
the class DisruptorConfig method send2.
// 每1s执行1次
@Scheduled(fixedDelay = 1000)
public void send2() throws Exception {
DisruptorBindEvent event = new DisruptorBindEvent(this, "message " + Math.random());
event.setEvent("Event-Output");
event.setTag("TagB-Output");
event.setKey("id-" + Math.random());
disruptorTemplate.publishEvent(event);
}
Aggregations