@BuilderPattern(role=BUILDER) public static final class Aroma.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Aroma |
build() |
Aroma.Builder |
withApplicationToken(String applicationToken)
Set the Token ID created from the Aroma App.
|
Aroma.Builder |
withAsyncExecutorService(ExecutorService executor) |
Aroma.Builder |
withEndpoint(String hostname,
int port) |
public Aroma.Builder withApplicationToken(@Required String applicationToken) throws IllegalArgumentException
applicationToken - IllegalArgumentExceptionpublic Aroma.Builder withEndpoint(@NonEmpty String hostname, int port) throws IllegalArgumentException
IllegalArgumentExceptionpublic Aroma.Builder withAsyncExecutorService(@Required ExecutorService executor) throws IllegalArgumentException
IllegalArgumentExceptionpublic Aroma build() throws IllegalStateException
IllegalStateExceptionCopyright © 2015–2016 RedRoma. All rights reserved.