Class HandlerTask
- java.lang.Object
-
- org.apache.felix.eventadmin.impl.tasks.HandlerTask
-
-
Constructor Summary
Constructors Constructor Description HandlerTask(EventHandlerProxy task, org.osgi.service.event.Event event, long timeout, DenylistLatch handlerLatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForDenylist()
Check to see if we need to deny this handlervoid
run()
Run Hander Eventvoid
runWithoutDenylistTiming()
boolean
useTimeout()
This method defines if a timeout handling should be used for the task.
-
-
-
Constructor Detail
-
HandlerTask
public HandlerTask(EventHandlerProxy task, org.osgi.service.event.Event event, long timeout, DenylistLatch handlerLatch)
- Parameters:
task
- Proxy to the event handlerevent
- The event to send to the handlertimeout
- Timeout for handler denyinghandlerLatch
- The latch used to ensure events fire in proper order
-
-
Method Detail
-
runWithoutDenylistTiming
public void runWithoutDenylistTiming()
-
useTimeout
public boolean useTimeout()
This method defines if a timeout handling should be used for the task.- Returns:
- Use timeout?
-
checkForDenylist
public void checkForDenylist()
Check to see if we need to deny this handler
-
-