| Constructor and Description |
|---|
BasicClient(String name,
Hosts hosts,
StreamingEndpoint endpoint,
Authentication auth,
boolean enableGZip,
HosebirdMessageProcessor processor,
ReconnectionManager reconnectionManager,
RateTracker rateTracker,
ExecutorService executorService,
BlockingQueue<Event> eventsQueue,
org.apache.http.params.HttpParams params,
org.apache.http.conn.scheme.SchemeRegistry schemeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connects to the endpoint and begins streaming.
|
StreamingEndpoint |
getEndpoint() |
Event |
getExitEvent()
This method should only be called after the client is done
|
String |
getName()
Name of the client used for logging and other diagnostic purposes.
|
StatsReporter.StatsTracker |
getStatsTracker() |
boolean |
isDone() |
void |
reconnect() |
void |
stop()
Permanently stops the current connection and does any necessary cleanup.
|
void |
stop(int waitMillis)
Permanently stops the current connection and does any necessary cleanup.
|
public BasicClient(String name, Hosts hosts, StreamingEndpoint endpoint, Authentication auth, boolean enableGZip, HosebirdMessageProcessor processor, ReconnectionManager reconnectionManager, RateTracker rateTracker, ExecutorService executorService, @Nullable BlockingQueue<Event> eventsQueue, org.apache.http.params.HttpParams params, org.apache.http.conn.scheme.SchemeRegistry schemeRegistry)
public void connect()
public StatsReporter.StatsTracker getStatsTracker()
getStatsTracker in interface Clientpublic Event getExitEvent()
public void stop()
ClientClient.isDone().
Note: after being called, neither Client.connect() nor Client.reconnect() is possible.public void stop(int waitMillis)
ClientClient.isDone().
Note: after being called, neither Client.connect() nor Client.reconnect() is permitted.public String getName()
Clientpublic StreamingEndpoint getEndpoint()
getEndpoint in interface ClientCopyright © 2014. All Rights Reserved.