public abstract class AbstractEventProducer extends Object implements EventProducer, org.springframework.beans.factory.BeanNameAware
event producer implementations
Read 'good practice' notes for documenting behaviour.| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEFAULT_AUTO_CLOSE_SESSION_ID |
protected static boolean |
DEFAULT_AUTO_PROPAGATE_SESSION_ID |
protected static boolean |
DEFAULT_CHART |
protected static long |
DEFAULT_WARN_DELAY |
protected org.apache.commons.logging.Log |
logger
Resource for derived classes to use for logging
|
PRODUCER_NAME_PREFIX| Constructor and Description |
|---|
AbstractEventProducer()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
register()
Register this instance for the event names that are handled.
|
protected long |
resumeTimer()
Continue timing the event processing
|
void |
setBeanName(String beanName) |
void |
setEventName(String eventName)
Set the single event name that this producer can handle
|
void |
setEventNames(List<String> eventNames)
Set the names of the events that this producer can handle
|
void |
setRegistry(EventProducerRegistry registry)
Inject the registry that this instance will
register with. |
protected long |
stopTimer()
Stop timing the event processing.
|
protected long |
suspendTimer()
Suspend the event processing timer.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNextEventsprotected static final long DEFAULT_WARN_DELAY
protected static final boolean DEFAULT_CHART
protected static final boolean DEFAULT_AUTO_PROPAGATE_SESSION_ID
protected static final boolean DEFAULT_AUTO_CLOSE_SESSION_ID
protected org.apache.commons.logging.Log logger
public void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setEventName(String eventName)
public void setEventNames(List<String> eventNames)
public void setRegistry(EventProducerRegistry registry)
register with.public void register()
protected long suspendTimer()
IllegalStateException - if the timer is not runningprotected long resumeTimer()
IllegalStateException - if the timer is is not suspendedprotected long stopTimer()
IllegalStateException - if the timer is is not running or suspendedCopyright © 2005–2018 Alfresco Software. All rights reserved.