com.alipay.remoting.util
Interface Switch

All Known Implementing Classes:
GlobalSwitch, ProtocolSwitch

public interface Switch

switch interface


Method Summary
 boolean isOn(int index)
          check switch whether on
 void turnOn(int index)
          api for user to turn on a feature
 

Method Detail

turnOn

void turnOn(int index)
api for user to turn on a feature

Parameters:
index - the switch index of feature

isOn

boolean isOn(int index)
check switch whether on

Parameters:
index -
Returns:
true if either system setting is on or user setting is on


Copyright © 2018. All rights reserved.