public class EventManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_PROPERTY_EVENT_MASK
this property may contain comma separated list of bit numbers defined in MercuryEvent.EventTypeEnum.
|
static String |
systemPropertyEventMask |
static int |
THREAD_COUNT |
Constructor and Description |
---|
EventManager()
default initialization - create thread pool
|
EventManager(MercuryEvent.EventMask eventMask)
default initialization - create thread pool
|
Modifier and Type | Method and Description |
---|---|
void |
fireEvent(MercuryEvent event) |
List<MercuryEventListener> |
getListeners() |
static boolean |
isEmpty(String o) |
void |
register(MercuryEventListener listener)
add listener only if it meets the criteria
|
static String |
toString(MercuryEvent event) |
void |
unRegister(MercuryEventListener listener) |
public static final int THREAD_COUNT
public static final String SYSTEM_PROPERTY_EVENT_MASK
public static final String systemPropertyEventMask
public EventManager()
public EventManager(MercuryEvent.EventMask eventMask)
public void register(MercuryEventListener listener)
listener
- public void unRegister(MercuryEventListener listener)
public List<MercuryEventListener> getListeners()
public void fireEvent(MercuryEvent event)
public static final String toString(MercuryEvent event)
public static final boolean isEmpty(String o)
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.