ConditionalInterceptor

class ConditionalInterceptor(delegate: HeapAnalysisInterceptor, evaluateCondition: (HeapAnalysisJob) -> Boolean) : HeapAnalysisInterceptor

An interceptor that runs only when evaluateCondition returns true.

Constructors

ConditionalInterceptor
Link copied to clipboard
fun ConditionalInterceptor(delegate: HeapAnalysisInterceptor, evaluateCondition: (HeapAnalysisJob) -> Boolean)

Functions

intercept
Link copied to clipboard
open override fun intercept(chain: HeapAnalysisInterceptor.Chain): HeapAnalysisJob.Result