Package io.split.client
Class SplitFactoryBuilder
- java.lang.Object
-
- io.split.client.SplitFactoryBuilder
-
public class SplitFactoryBuilder extends Object
Builds an instance of SplitClient.
-
-
Constructor Summary
Constructors Constructor Description SplitFactoryBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SplitFactorybuild(String apiToken)Instantiates a SplitFactory with default configstatic SplitFactorybuild(String apiToken, SplitClientConfig config)static SplitFactorylocal()Instantiates a local Off-The-Grid SplitFactorystatic SplitFactorylocal(SplitClientConfig config)Instantiates a local Off-The-Grid SplitFactorystatic voidmain(String... args)
-
-
-
Method Detail
-
build
public static SplitFactory build(String apiToken) throws IOException, URISyntaxException
Instantiates a SplitFactory with default config- Parameters:
apiToken- the API token. MUST NOT be null- Returns:
- a SplitFactory
- Throws:
IOException- if the SDK was being started in 'localhost' mode, but there were problems reading the override file from disk.URISyntaxException
-
build
public static SplitFactory build(String apiToken, SplitClientConfig config) throws IOException, URISyntaxException
- Parameters:
apiToken- the API token. MUST NOT be nullconfig- parameters to control sdk construction. MUST NOT be null.- Returns:
- a SplitFactory
- Throws:
IOException- if the SDK was being started in 'localhost' mode, but there were problems reading the override file from disk.URISyntaxException
-
local
public static SplitFactory local() throws IOException
Instantiates a local Off-The-Grid SplitFactory- Throws:
IOException- if there were problems reading the override file from disk.
-
local
public static SplitFactory local(SplitClientConfig config) throws IOException
Instantiates a local Off-The-Grid SplitFactory- Returns:
- config Split config file
- Throws:
IOException- if there were problems reading the override file from disk.
-
main
public static void main(String... args) throws IOException, InterruptedException, TimeoutException, URISyntaxException
-
-