public interface Client
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects to the endpoint and begins streaming.
|
SitestreamController |
createSitestreamController() |
StreamingEndpoint |
getEndpoint() |
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.
|
void connect()
void reconnect()
void stop()
isDone()
.
Note: after being called, neither connect()
nor reconnect()
is possible.void stop(int waitMillis)
isDone()
.
Note: after being called, neither connect()
nor reconnect()
is permitted.waitMillis
- milliseconds to wait for the client to stopboolean isDone()
String getName()
StreamingEndpoint getEndpoint()
SitestreamController createSitestreamController()
StatsReporter.StatsTracker getStatsTracker()
Copyright © 2013. All Rights Reserved.