public interface ConnectionFactory
Modifier and Type | Method and Description |
---|---|
<T> Connection<T> |
create(String endpoint,
JsonParser<T> parser,
ClientConfig config)
Create a new
Connection for a given endpoint and configuration. |
<T> Connection<T> create(String endpoint, JsonParser<T> parser, ClientConfig config)
Connection
for a given endpoint and configuration.T
- type of the result as returned by the parserendpoint
- the API endpointparser
- the parser used for parsing the resultconfig
- the configurationCopyright © 2016. All rights reserved.