@Stability.Internal public class CoreLimiter extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getFailIfInstanceLimitReached() |
static int |
getMaxAllowedInstances() |
static int |
numInstances() |
static void |
setFailIfInstanceLimitReached(boolean failIfInstanceLimitReached)
Configures if the SDK should fail to create instead of warn if the instance limit is reached.
|
static void |
setMaxAllowedInstances(int maxAllowedInstances)
Configures the maximum allowed core instances before warning/failing.
|
public static void setMaxAllowedInstances(int maxAllowedInstances)
maxAllowedInstances
- the number of max allowed core instances. Must be greater than zero.public static int getMaxAllowedInstances()
public static void setFailIfInstanceLimitReached(boolean failIfInstanceLimitReached)
failIfInstanceLimitReached
- true if it should throw an exception instead of warn.public static boolean getFailIfInstanceLimitReached()
public static int numInstances()
Copyright © 2024 Couchbase, Inc.. All rights reserved.