Package ru.bitel.bgbilling.kernel.event
Class PoolEventPublisher<E extends ru.bitel.bgbilling.kernel.event.common.Event>
java.lang.Object
ru.bitel.bgbilling.kernel.event.PoolEventPublisher<E>
- Type Parameters:
E
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
PoolQueueEventPublisher
,PoolTopicEventPublisher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
int
int
void
protected abstract void
void
Публикует событие при вызове commit текущего ThreadContext.void
publishAfterCommit
(ru.bitel.common.worker.CommitableHandler context, E e) Публикует событие при вызове commit у contextvoid
run()
void
setMessageHandler
(MessageHandler messageHandler)
-
Field Details
-
messageHandler
-
-
Method Details
-
setMessageHandler
-
publish
- Throws:
ru.bitel.bgbilling.common.BGException
-
run
public void run() -
publish
protected abstract void publish(EventProcessor eventProcessor, Class<E> clazz, List<E> list) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
close
public void close() -
finalize
-
publishAfterCommit
Публикует событие при вызове commit у context- Parameters:
context
-e
-
-
publishAfterCommit
Публикует событие при вызове commit текущего ThreadContext.- Parameters:
e
-
-
getModuleId
public int getModuleId() -
getPluginId
public int getPluginId()
-