public abstract class ThreadEvent extends Event
FileEventTracker
.
Producers should use the static onEnter(Object, boolean)
and onLeave(Object)
factory methods and fire events by
invoking the event's send()
method.
Consumers should implements the ThreadEventHandler
interface and
register it in the EventService
using the ThreadEventListener
wrapper.Constructor and Description |
---|
ThreadEvent(Class<? extends ThreadEvent> type,
Object source,
Object data) |
Modifier and Type | Method and Description |
---|---|
abstract void |
handle(ThreadEventHandler handler) |
static void |
ignore(ThreadEventListener aListener) |
static void |
listen(ThreadEventListener aListener) |
static ThreadEvent |
onEnter(Object source,
boolean isLongRunning) |
static ThreadEvent |
onLeave(Object source) |
void |
send() |
public ThreadEvent(Class<? extends ThreadEvent> type, Object source, Object data)
public abstract void handle(ThreadEventHandler handler)
public void send()
public static ThreadEvent onEnter(Object source, boolean isLongRunning)
public static ThreadEvent onLeave(Object source)
public static void listen(ThreadEventListener aListener)
public static void ignore(ThreadEventListener aListener)
Copyright © 2014 Nuxeo SA. All rights reserved.