public class HandlerTask
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
HandlerTask(EventHandlerProxy task,
org.osgi.service.event.Event event,
long timeout,
BlacklistLatch handlerLatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForBlacklist()
Check to see if we need to blacklist this handler
|
long |
getTaskTime()
Determine the amount of time spent running this task
|
long |
getTimeInMillis()
Perform timing based on thread CPU time with clock time fall back.
|
void |
run()
Run Hander Event
|
void |
runWithoutBlacklistTiming() |
boolean |
useTimeout()
This method defines if a timeout handling should be used for the
task.
|
public HandlerTask(EventHandlerProxy task, org.osgi.service.event.Event event, long timeout, BlacklistLatch handlerLatch)
task - Proxy to the event handlerevent - The event to send to the handlertimeout - Timeout for handler blacklistinghandlerLatch - The latch used to ensure events fire in proper orderpublic long getTimeInMillis()
public void run()
run in interface java.lang.Runnablepublic void runWithoutBlacklistTiming()
public boolean useTimeout()
public void checkForBlacklist()
public long getTaskTime()
Copyright © 2017 FuseSource, Corp.. All Rights Reserved.