|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.eventadmin.impl.handler.EventHandlerProxy
public class EventHandlerProxy
This is a proxy for event handlers. It gets the real event handler on demand and prepares some information for faster processing. It checks the timeout handling for the implementation as well as blacklisting the handler.
| Constructor Summary | |
|---|---|
EventHandlerProxy(org.apache.felix.eventadmin.impl.handler.EventHandlerTracker.HandlerContext context,
org.osgi.framework.ServiceReference reference)
Create an EventHandlerProxy. |
|
| Method Summary | |
|---|---|
void |
blackListHandler()
Blacklist the handler. |
boolean |
canDeliver(org.osgi.service.event.Event event)
Check if this handler is allowed to receive the event - blacklisted - check filter - check permission |
void |
dispose()
Dispose the proxy and release the handler |
java.lang.String[] |
getTopics()
Get the topics of this handler. |
boolean |
isAsyncOrderedDelivery()
Should async events be delivered in order? |
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? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventHandlerProxy(org.apache.felix.eventadmin.impl.handler.EventHandlerTracker.HandlerContext context,
org.osgi.framework.ServiceReference reference)
context - The handler contextreference - Reference to the EventHandler| Method Detail |
|---|
public boolean update()
true if the handler configuration is valid.public void dispose()
public java.lang.String[] getTopics()
null is returned
public boolean canDeliver(org.osgi.service.event.Event event)
public boolean useTimeout()
public boolean isAsyncOrderedDelivery()
public void sendEvent(org.osgi.service.event.Event event)
public void blackListHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||