|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of the object that identifies a server.public interface ConnectionMaintainer<T>
The interface to an object that robustly maintains connections to a number of servers.
| Method Summary | |
|---|---|
Collection<T> |
getConnectedServers()
Returns a collection of the servers that are currently connected. |
Optional<T> |
getMostRecentlyActive()
Returns the most recently active server. |
void |
start()
Starts this maintainer. |
| Method Detail |
|---|
void start()
Optional<T> getMostRecentlyActive()
None object is returned. Otherwise, a
Some object with map entry of the most recently active
server is returned. The type of the server is determined by the
types used by the implementation. In the default implementation,
the type of the server is determined by the
ConnectionEstablisher that is used.Collection<T> getConnectedServers()
ConnectionEstablisher that
is used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||