interface ClusterableServer extends Server
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener<ServerDescription> changeListener)
Adds a change listener to this server.
|
void |
close()
Closes the server.
|
void |
connect()
Attempt to connect to the server.
|
void |
invalidate()
Invalidate the description of this server.
|
boolean |
isClosed()
Returns true if the server is closed, false otherwise.
|
getConnection, getDescriptionvoid addChangeListener(ChangeListener<ServerDescription> changeListener)
changeListener - the listener for change events to the description of this servervoid invalidate()
invalidate in interface Servervoid close()
Closes the server. Instances that have been closed will no longer be available for use.
Implementations should ensure that this method can be called multiple times with no ill effects.
boolean isClosed()
void connect()