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 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 void main(String... args) throws IOException, InterruptedException, TimeoutException, URISyntaxException
Copyright © 2016. All rights reserved.