public class ExecutorEventSupportEJBImpl extends Object implements ExecutorEventSupport
Constructor and Description |
---|
ExecutorEventSupportEJBImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(AsynchronousJobListener listener) |
void |
clear() |
void |
fireAfterJobCancelled(org.kie.api.executor.RequestInfo job,
Throwable exception) |
void |
fireAfterJobExecuted(org.kie.api.executor.RequestInfo job,
Throwable exception) |
void |
fireAfterJobScheduled(org.kie.api.executor.RequestInfo job,
Throwable exception) |
void |
fireBeforeJobCancelled(org.kie.api.executor.RequestInfo job,
Throwable exception) |
void |
fireBeforeJobExecuted(org.kie.api.executor.RequestInfo job,
Throwable exception) |
void |
fireBeforeJobScheduled(org.kie.api.executor.RequestInfo job,
Throwable exception) |
List<AsynchronousJobListener> |
getEventListeners() |
boolean |
isEmpty() |
void |
notifyAllListeners(Consumer<AsynchronousJobListener> consumer) |
void |
readExternal(ObjectInput in) |
void |
removeEventListener(AsynchronousJobListener listener) |
void |
removeEventListener(Class cls) |
int |
size() |
void |
writeExternal(ObjectOutput out) |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void notifyAllListeners(Consumer<AsynchronousJobListener> consumer)
notifyAllListeners
in interface ExecutorEventSupport
public void addEventListener(AsynchronousJobListener listener)
addEventListener
in interface ExecutorEventSupport
public void removeEventListener(Class cls)
removeEventListener
in interface ExecutorEventSupport
public void removeEventListener(AsynchronousJobListener listener)
removeEventListener
in interface ExecutorEventSupport
public List<AsynchronousJobListener> getEventListeners()
getEventListeners
in interface ExecutorEventSupport
public int size()
size
in interface ExecutorEventSupport
public boolean isEmpty()
isEmpty
in interface ExecutorEventSupport
public void clear()
clear
in interface ExecutorEventSupport
public void fireBeforeJobScheduled(org.kie.api.executor.RequestInfo job, Throwable exception)
fireBeforeJobScheduled
in interface ExecutorEventSupport
public void fireBeforeJobExecuted(org.kie.api.executor.RequestInfo job, Throwable exception)
fireBeforeJobExecuted
in interface ExecutorEventSupport
public void fireBeforeJobCancelled(org.kie.api.executor.RequestInfo job, Throwable exception)
fireBeforeJobCancelled
in interface ExecutorEventSupport
public void fireAfterJobScheduled(org.kie.api.executor.RequestInfo job, Throwable exception)
fireAfterJobScheduled
in interface ExecutorEventSupport
public void fireAfterJobExecuted(org.kie.api.executor.RequestInfo job, Throwable exception)
fireAfterJobExecuted
in interface ExecutorEventSupport
public void fireAfterJobCancelled(org.kie.api.executor.RequestInfo job, Throwable exception)
fireAfterJobCancelled
in interface ExecutorEventSupport
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.