com.jdon.domain.message
接口 DomainEventHandler<T>

类型参数:
EventDisruptor -
所有已知实现类:
DomainEventDispatchHandler

public interface DomainEventHandler<T>

This is a Disruptor EvenHandler. if a class annotated with @Consumer(XX); it must implements com.jdon.domain.message.DomainEventHandler * Domain Model producer /Consumer: 1. annotate the producer class with @Model and @Introduce("message") 2. annotate the method with @Send("mytopic") of the producer class; 3. the "mytopic" value in @Send("mytopic") is equals to the "mytopic" value in @Consumer("mytopic"); 4. annotate the consumer class with @Consumer("mytopic"); 5. the consumer class must implements com.jdon.domain.message.DomainEventHandler

作者:
banq

方法摘要
 void onEvent(EventDisruptor event, boolean endOfBatch)
           
 

方法详细信息

onEvent

void onEvent(EventDisruptor event,
             boolean endOfBatch)
             throws Exception
抛出:
Exception


Copyright © 2013. All Rights Reserved.