public interface Client
Implementation must support concurrent use.
| Modifier and Type | Method and Description |
|---|---|
void |
init(java.lang.String prefix,
java.util.Properties props,
Logger logger)
Initializes the client.
|
Response |
send(Request request)
Sends a request with default options.
|
Response |
send(Request request,
RequestOptions options)
Sends a request with specified options.
|
void |
shutdown()
Releases resources, interrupts threads, etc.
|
void init(java.lang.String prefix,
java.util.Properties props,
Logger logger)
throws InitializationException
prefix - A prefix applied to all property names.props - A properties file.logger - A logger for messages.InitializationException - on initialization error.Response send(Request request) throws java.io.IOException
request - The request.java.io.IOException - on I/O error.Response send(Request request, RequestOptions options) throws java.io.IOException
request - The request.options - The request options.java.io.IOException - on I/O error.void shutdown()
throws java.lang.Exception
java.lang.Exception - on shutdown exception.