Package ch.qos.logback.core.util
Class InterruptUtil
- java.lang.Object
 - 
- ch.qos.logback.core.spi.ContextAwareBase
 - 
- ch.qos.logback.core.util.InterruptUtil
 
 
 
- 
- All Implemented Interfaces:
 ContextAware
@Deprecated(since="2022-01-27") public class InterruptUtil extends ContextAwareBase
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.Allows masking of interrupt flag if previously the flag is already set. Does nothing otherwise. Typical use:InterruptUtil interruptUtil = new InterruptUtil(context); try { interruptUtil.maskInterruptFlag(); someOtherThread.join(delay); } catch(InterruptedException e) { // reachable only if join does not succeed within delay. // Without the maskInterruptFlag() call, the join() would have returned immediately // had the current thread been interrupted previously, i.e. before entering the above block } finally { interruptUtil.unmaskInterruptFlag(); }- Since:
 - 1.2.2
 
 
- 
- 
Constructor Summary
Constructors Constructor Description InterruptUtil(Context context)Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidmaskInterruptFlag()Deprecated.voidunmaskInterruptFlag()Deprecated.- 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
InterruptUtil
public InterruptUtil(Context context)
Deprecated. 
 - 
 
 -