public class EventAdminImpl
extends java.lang.Object
implements org.osgi.service.event.EventAdmin
Constructor and Description |
---|
EventAdminImpl(org.osgi.framework.BundleContext bundleContext,
DefaultThreadPool syncPool,
DefaultThreadPool asyncPool,
int timeout,
java.lang.String[] ignoreTimeout,
boolean requireTopic,
java.lang.String[] ignoreTopics)
The constructor of the EventAdmin implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
postEvent(org.osgi.service.event.Event event)
Post an asynchronous event.
|
void |
sendEvent(org.osgi.service.event.Event event)
Send a synchronous event.
|
void |
stop()
This method can be used to stop the delivery of events.
|
void |
update(int timeout,
java.lang.String[] ignoreTimeout,
boolean requireTopic,
java.lang.String[] ignoreTopics)
Update the event admin with new configuration.
|
public EventAdminImpl(org.osgi.framework.BundleContext bundleContext, DefaultThreadPool syncPool, DefaultThreadPool asyncPool, int timeout, java.lang.String[] ignoreTimeout, boolean requireTopic, java.lang.String[] ignoreTopics)
syncPool
- The synchronous thread poolasyncPool
- The asynchronous thread poolpublic void postEvent(org.osgi.service.event.Event event)
postEvent
in interface org.osgi.service.event.EventAdmin
event
- The event to be posted by this servicejava.lang.IllegalStateException
- - In case we are stoppedEventAdmin.postEvent(org.osgi.service.event.Event)
public void sendEvent(org.osgi.service.event.Event event)
sendEvent
in interface org.osgi.service.event.EventAdmin
event
- The event to be send by this servicejava.lang.IllegalStateException
- - In case we are stoppedEventAdmin.sendEvent(org.osgi.service.event.Event)
public void stop()
public void update(int timeout, java.lang.String[] ignoreTimeout, boolean requireTopic, java.lang.String[] ignoreTopics)
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.