public class EventHandlerProxy extends Object
| Constructor and Description |
|---|
EventHandlerProxy(org.apache.felix.eventadmin.impl.handler.EventHandlerTracker.HandlerContext context,
org.osgi.framework.ServiceReference<org.osgi.service.event.EventHandler> reference)
Create an EventHandlerProxy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDeliver(org.osgi.service.event.Event event)
Check if this handler is allowed to receive the event
- denied
- check filter
- check permission
|
void |
denyEventHandler()
Deny the handler.
|
void |
dispose()
Dispose the proxy and release the handler
|
String |
getInfo()
Get some info about the event handler
|
String[] |
getTopics()
Get the topics of this handler.
|
boolean |
isAsyncOrderedDelivery()
Should async events be delivered in order?
|
boolean |
isDenied() |
void |
sendEvent(org.osgi.service.event.Event event)
Send the event.
|
boolean |
update()
Update the state with current properties from the service
|
boolean |
useTimeout()
Should a timeout be used for this handler?
|
public EventHandlerProxy(org.apache.felix.eventadmin.impl.handler.EventHandlerTracker.HandlerContext context,
org.osgi.framework.ServiceReference<org.osgi.service.event.EventHandler> reference)
context - The handler contextreference - Reference to the EventHandlerpublic boolean update()
true if the handler configuration is valid.public String getInfo()
public void dispose()
public String[] getTopics()
null is returnednullpublic boolean canDeliver(org.osgi.service.event.Event event)
event - The eventtrue if the event can be deliveredpublic boolean useTimeout()
true if a timeout should be usedpublic boolean isAsyncOrderedDelivery()
true if async events should be delivered in orderpublic void sendEvent(org.osgi.service.event.Event event)
event - The eventpublic void denyEventHandler()
public boolean isDenied()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.