public class MailchimpClient
MailChimp API wrapper.
| Constructor and Description |
|---|
MailchimpClient(java.lang.String apiKey,
Connector connector)
Thread safety of the created instances depends on the supplied connector.
|
MailchimpClient(java.lang.String apiKey)
Instances created via this constructor are thread safe since they share a thread safe pool of http connections.
However in terms of performance it doesnt matter whether you reuse the same instance for the whole application or re-create it on every operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Terminate the wrapper usage and release associated resources.
|
<R extends MailchimpObject> |
execute(MailchimpMethod<R> method)
Execute a MailChimp API method.
|
public MailchimpClient(java.lang.String apiKey,
Connector connector)
Thread safety of the created instances depends on the supplied connector.
public MailchimpClient(java.lang.String apiKey)
Instances created via this constructor are thread safe since they share a thread safe pool of http connections. However in terms of performance it doesnt matter whether you reuse the same instance for the whole application or re-create it on every operation.
public <R extends MailchimpObject> R execute(MailchimpMethod<R> method)
Execute a MailChimp API method.
public void close()
Terminate the wrapper usage and release associated resources.