public class EventListenerDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
EventListenerDescriptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptBundle(EventBundle bundle)
Checks if there's at least one event of interest in the bundle.
|
boolean |
acceptEvent(String eventName) |
EventListener |
asEventListener() |
PostCommitEventListener |
asPostCommitListener() |
EventBundle |
filterBundle(EventBundle bundle)
Filters the event bundle to only keep events of interest to this listener.
|
Set<String> |
getEvents() |
boolean |
getIsAsync() |
String |
getName() |
int |
getPriority() |
Integer |
getRetryCount() |
RuntimeContext |
getRuntimeContext() |
Script |
getScript() |
Integer |
getTransactionTimeout() |
void |
initListener() |
boolean |
isEnabled() |
boolean |
isSingleThreaded() |
void |
merge(EventListenerDescriptor other) |
void |
setEnabled(boolean isEnabled) |
void |
setEvents(Set<String> events) |
void |
setIsAsync(Boolean isAsync) |
void |
setRetryCount(Integer retryCount) |
void |
setRuntimeContext(RuntimeContext rc) |
public int getPriority()
public void setRuntimeContext(RuntimeContext rc)
public RuntimeContext getRuntimeContext()
public boolean isEnabled()
public Integer getRetryCount()
public void setEnabled(boolean isEnabled)
public void setRetryCount(Integer retryCount)
public void initListener()
public EventListener asEventListener()
public PostCommitEventListener asPostCommitListener()
public Script getScript() throws IOException
IOException
public String getName()
public Integer getTransactionTimeout()
public void merge(EventListenerDescriptor other)
public final boolean acceptEvent(String eventName)
public void setIsAsync(Boolean isAsync)
public boolean getIsAsync()
public boolean isSingleThreaded()
public EventBundle filterBundle(EventBundle bundle)
public boolean acceptBundle(EventBundle bundle)
Copyright © 2015 Nuxeo SA. All rights reserved.