E
- public abstract class PoolEventPublisher<E extends Event>
extends java.lang.Object
implements java.lang.Runnable
PoolEvent}, {@link EventProcessor#newPoolEventPublisher(Class, int)}
Modifier and Type | Field and Description |
---|---|
protected MessageHandler |
messageHandler |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
void |
publish(E e) |
protected abstract void |
publish(EventProcessor eventProcessor,
java.lang.Class<E> clazz,
java.util.List<E> list) |
void |
publishAfterCommit(ru.bitel.common.worker.CommitableHandler context,
E e)
Публикует событие при вызове commit у context
|
void |
publishAfterCommit(E e)
Публикует событие при вызове commit текущего ThreadContext.
|
void |
run() |
void |
setMessageHandler(MessageHandler messageHandler) |
protected MessageHandler messageHandler
public void setMessageHandler(MessageHandler messageHandler)
public void publish(E e) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void run()
run
in interface java.lang.Runnable
protected abstract void publish(EventProcessor eventProcessor, java.lang.Class<E> clazz, java.util.List<E> list) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void publishAfterCommit(ru.bitel.common.worker.CommitableHandler context, E e)
context
- e
- public void publishAfterCommit(E e)
e
-