public abstract class AbstractDisruptorEventPublisher extends Object implements TransactionExecutorEventService, MuleTccShutdownService, com.lmax.disruptor.ExceptionHandler<net.lulihu.disruptorKit.Event<DisruptorTransactionEvent>>
| 限定符和类型 | 字段和说明 |
|---|---|
protected TransactionCoordinatorService |
transactionCoordinatorService |
| 构造器和说明 |
|---|
AbstractDisruptorEventPublisher() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
componentName()
组件名称
|
void |
handleEventException(Throwable ex,
long sequence,
net.lulihu.disruptorKit.Event<DisruptorTransactionEvent> event) |
void |
handleOnShutdownException(Throwable ex) |
void |
handleOnStartException(Throwable ex) |
void |
initialization(MuleTccConfig config,
TransactionCoordinatorService transactionCoordinatorService)
初始化
|
int |
order()
根据该方法返回的值进行排序,值越小越先执行判断方法
|
void |
shutdown()
关闭应用程序
|
protected void |
submit(EventTypeEnum eventType,
Object... args)
提交至队列执行
|
boolean |
support(TransactionHandlerService obj)
该处理器是否支持处理该事务
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, confirm, delete, deleteByContext, rpcCancel, rpcConfirm, saveTransaction, updateStatus, updateTransactionParticipantafterInitializationprotected TransactionCoordinatorService transactionCoordinatorService
public final void initialization(MuleTccConfig config, TransactionCoordinatorService transactionCoordinatorService)
TransactionExecutorServiceinitialization 在接口中 TransactionExecutorService<TransactionHandlerService>config - 配置transactionCoordinatorService - 事件协调服务protected final void submit(EventTypeEnum eventType, Object... args)
eventType - 事件类型args - 事件方法参数public void handleOnStartException(Throwable ex)
handleOnStartException 在接口中 com.lmax.disruptor.ExceptionHandler<net.lulihu.disruptorKit.Event<DisruptorTransactionEvent>>public void handleEventException(Throwable ex, long sequence, net.lulihu.disruptorKit.Event<DisruptorTransactionEvent> event)
handleEventException 在接口中 com.lmax.disruptor.ExceptionHandler<net.lulihu.disruptorKit.Event<DisruptorTransactionEvent>>public void handleOnShutdownException(Throwable ex)
handleOnShutdownException 在接口中 com.lmax.disruptor.ExceptionHandler<net.lulihu.disruptorKit.Event<DisruptorTransactionEvent>>public boolean support(TransactionHandlerService obj)
TransactionSupportServicesupport 在接口中 TransactionSupportService<TransactionHandlerService>obj - 泛型由实现者决定public int order()
TransactionSupportServiceorder 在接口中 MuleTccShutdownServiceorder 在接口中 TransactionSupportService<TransactionHandlerService>public String componentName()
ComponentServicecomponentName 在接口中 ComponentServicepublic final void shutdown()
MuleTccShutdownServiceshutdown 在接口中 MuleTccShutdownServiceCopyright © 2019. All rights reserved.