public class ActivityReaper extends Object
Modifier and Type | Method and Description |
---|---|
static ActivityReaper |
activityReaper() |
static ActivityReaper |
activityReaper(boolean createReaper) |
boolean |
check(long timeout)
Only check for one at a time to prevent starvation.
|
static ActivityReaper |
create()
Currently we let the reaper thread run at same priority as other
threads.
|
boolean |
insert(ActivityImple activity,
int timeout)
timeout is given in seconds, but we work in milliseconds.
|
long |
numberOfActivities() |
boolean |
remove(ActivityImple act) |
static void |
shutdown()
make sure the reaper thread exits
|
long |
sleepPeriod() |
public final long sleepPeriod()
public final boolean check(long timeout)
public final long numberOfActivities()
public final boolean insert(ActivityImple activity, int timeout)
public final boolean remove(ActivityImple act)
public static ActivityReaper create()
public static ActivityReaper activityReaper()
public static ActivityReaper activityReaper(boolean createReaper)
public static void shutdown()
Copyright © 2016 JBoss by Red Hat. All rights reserved.