public class SplitFactoryBuilder extends Object
| Constructor and Description |
|---|
SplitFactoryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static SplitFactory |
build(String apiToken)
Instantiates a SplitFactory with default config
|
static SplitFactory |
build(String apiToken,
SplitClientConfig config) |
static SplitFactory |
local()
Instantiates a local Off-The-Grid SplitFactory
|
static SplitFactory |
local(SplitClientConfig config)
Instantiates a local Off-The-Grid SplitFactory
|
static void |
main(String... args) |
public static SplitFactory build(String apiToken) throws IOException, URISyntaxException
apiToken - the API token. MUST NOT be nullIOException - if the SDK was being started in 'localhost' mode, but
there were problems reading the override file from disk.URISyntaxExceptionpublic static SplitFactory build(String apiToken, SplitClientConfig config) throws IOException, URISyntaxException
apiToken - the API token. MUST NOT be nullconfig - parameters to control sdk construction. MUST NOT be null.IOException - if the SDK was being started in 'localhost' mode, but
there were problems reading the override file from disk.URISyntaxExceptionpublic static SplitFactory local() throws IOException
IOException - if there were problems reading the override file from disk.public static SplitFactory local(SplitClientConfig config) throws IOException
IOException - if there were problems reading the override file from disk.public static void main(String... args) throws IOException, InterruptedException, TimeoutException, URISyntaxException
Copyright © 2019. All rights reserved.