Package org.jgroups.stack
Class CheckCallerRunsPolicy
- java.lang.Object
-
- org.jgroups.stack.CheckCallerRunsPolicy
-
- All Implemented Interfaces:
Policy
public class CheckCallerRunsPolicy extends java.lang.Object implements Policy
If eitherUNICAST3
orNAKACK2
are missing, then this policy checks that the thread pool has a rejection policy ofThreadPoolExecutor.CallerRunsPolicy
.
Issues a warning and changes the rejection policy toThreadPoolExecutor.CallerRunsPolicy
if not.- Since:
- 5.2.14
- Author:
- Bela Ban
-
-
Constructor Summary
Constructors Constructor Description CheckCallerRunsPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(Protocol prot)
Checks that a condition is met in a given protocolprotected static boolean
isCallerRunsHandler(java.util.concurrent.RejectedExecutionHandler h)
-