Class HandlerTask
java.lang.Object
org.apache.felix.eventadmin.impl.tasks.HandlerTask
- All Implemented Interfaces:
java.lang.Runnable
public class HandlerTask
extends java.lang.Object
implements java.lang.Runnable
A task that processes an event handler
-
Constructor Summary
Constructors Constructor Description HandlerTask(EventHandlerProxy task, org.osgi.service.event.Event event, long timeout, DenylistLatch handlerLatch) -
Method Summary
Modifier and Type Method Description voidcheckForDenylist()Check to see if we need to deny this handlervoidrun()Run Hander EventvoidrunWithoutDenylistTiming()booleanuseTimeout()This method defines if a timeout handling should be used for the task.
-
Constructor Details
-
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 Details
-
run
public void run()Run Hander Event- Specified by:
runin interfacejava.lang.Runnable
-
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
-