Package org.eclipse.jetty.util.thread
Class ThreadPoolBudget
java.lang.Object
org.eclipse.jetty.util.thread.ThreadPoolBudget
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
A budget of required thread usage, used to warn or error for insufficient configured threads.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.classDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct a budget for a SizedThreadPool.ThreadPoolBudget(ThreadPool.SizedThreadPool pool, int warnAt) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(int maxThreads) Deprecated.Checks leases against the given number ofmaxThreads.intDeprecated.Deprecated.static ThreadPoolBudget.LeaseDeprecated.Deprecated.voidreset()Deprecated.
-
Constructor Details
-
ThreadPoolBudget
Deprecated.Construct a budget for a SizedThreadPool.- Parameters:
pool- The pool to budget thread allocation for.
-
ThreadPoolBudget
Deprecated.- Parameters:
pool- The pool to budget thread allocation for.warnAt- The level of free threads at which a warning is generated.
-
-
Method Details
-
getSizedThreadPool
Deprecated. -
getLeasedThreads
Deprecated. -
reset
public void reset()Deprecated. -
leaseTo
Deprecated. -
check
Deprecated.Checks leases against the given number of
maxThreads.- Parameters:
maxThreads- A proposed change to the maximum threads to check.- Returns:
- true if passes check, false if otherwise (see logs for details)
- Throws:
IllegalStateException- if insufficient threads are configured.
-
leaseFrom
Deprecated.
-