public final class MemoryEventConstants
extends java.lang.Object
org.osgi.service.event.EventHandler interface as specified by the OSGi
Event Admin Service Specification.
For example, the following handler is registered to handle critical memory events:
BundleContext context = getContext(); EventHandler handler = getHandler(); Hashtable ht = new Hashtable(); ht.put(EventConstants.EVENT_TOPIC, MemoryEventConstants.TOPIC_CRITICAL); context.registerService(EventHandler.class.getName(), handler, ht);There is no policy implemented for sending memory events in Equinox or Eclipse by default. Another bundle must implement the policy that determines when to send memory events. This policy must use the Event Admin Service to fire memory events to the registered handlers.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOPIC_ALL
A memory event topic for all memory events.
|
static java.lang.String |
TOPIC_BASE
The base topic that all memory events use.
|
static java.lang.String |
TOPIC_CRITICAL
A memory event topic for critical memory events.
|
static java.lang.String |
TOPIC_NORMAL
A memory event topic for normal memory events.
|
static java.lang.String |
TOPIC_SERIOUS
A memory event topic for serious memory events.
|
public static final java.lang.String TOPIC_BASE
public static final java.lang.String TOPIC_NORMAL
public static final java.lang.String TOPIC_SERIOUS
public static final java.lang.String TOPIC_CRITICAL
public static final java.lang.String TOPIC_ALL