public abstract class ConcurrencyDetection extends Object
Concurrency is currently triggered at 2 levels: - number of concurrent invocations - contention on the io system.
Modifier and Type | Method and Description |
---|---|
static ConcurrencyDetection |
createDisabled() |
static ConcurrencyDetection |
createEnabled(long durationMs) |
boolean |
enabled()
Checks if this ConcurrencyDetection is enabled.
|
abstract boolean |
isDetected()
Checks if any concurrency is detected.
|
abstract void |
onDetected()
Called when concurrency is detected.
|
public abstract boolean isDetected()
This call is thread-safe.
public abstract void onDetected()
This call is thread-safe.
public boolean enabled()
This is useful if you want to fall back to legacy mode.
public static ConcurrencyDetection createEnabled(long durationMs)
public static ConcurrencyDetection createDisabled()
Copyright © 2019 Hazelcast, Inc.. All rights reserved.