@Deprecated public class GlobalSwitch extends Object implements Switch
NOTICE:
1. system settings will take effect in all bolt client or server instances in one process
2. user settings will only take effect in the current instance of bolt client or server.
| Constructor and Description |
|---|
GlobalSwitch()
Deprecated.
Init with system default value
if settings exist by system property then use system property at first;
if no settings exist by system property then use default value in
Configs
All these settings can be overwrite by user api settings. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOn(int index)
Deprecated.
check switch whether on
|
void |
turnOff(int index)
Deprecated.
api for user to turn off a feature
|
void |
turnOn(int index)
Deprecated.
api for user to turn on a feature
|
public GlobalSwitch()
Configs
All these settings can be overwrite by user api settings.Copyright © 2024. All rights reserved.