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 configurations
|
static SplitFactory |
build(String apiToken,
SplitClientConfig config) |
static SplitFactory |
local()
Instantiates a local Off-The-Grid SplitFactory
|
static SplitFactory |
local(String home)
Instantiates a local Off-The-Grid SplitFactory
|
static void |
main(String... args) |
public static SplitFactory build(String apiToken) throws IOException, InterruptedException, TimeoutException, 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.InterruptedException - if you asked to block until the sdk was
ready and the block was interrupted.TimeoutException - if you asked to block until the sdk was
ready and the timeout specified via config#ready() passed.URISyntaxExceptionpublic static SplitFactory build(String apiToken, SplitClientConfig config) throws IOException, InterruptedException, TimeoutException, 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.InterruptedException - if you asked to block until the sdk was
ready and the block was interrupted.TimeoutException - if you asked to block until the sdk was
ready and the timeout specified via config#ready() passed.URISyntaxExceptionpublic static SplitFactory local() throws IOException
IOException - if there were problems reading the override file from disk.public static SplitFactory local(String home) throws IOException
home - A directory containing the .split file from which to build treatments. MUST NOT be nullIOException - if there were problems reading the override file from disk.public static void main(String... args) throws IOException, InterruptedException, TimeoutException, URISyntaxException
Copyright © 2018. All rights reserved.