Interface DynamicBroadcastConfig
- All Known Implementing Classes:
DocumentBroadcastConfig
public interface DynamicBroadcastConfig
Broadcast configuration. Configuration is dynamic, that means can change over
time. The configuration consists of a list of connected clients. Each client
can connect and disconnect, and therefore allow other clients to connect to
it.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAnnounce a new client to others.void
disconnect
(String id) Sign off.Get the client info of all connected clients.Get the global configuration data that is not associated to a specific client.
-
Field Details
-
ID
The unique id of this client.- See Also:
-
LISTENER
The listener address, for example the IP address and port.- See Also:
-
-
Method Details
-
getConfig
String getConfig()Get the global configuration data that is not associated to a specific client.- Returns:
- the configuration
-
getClientInfo
Get the client info of all connected clients.- Returns:
- the list of client info maps
-
connect
Announce a new client to others.- Parameters:
clientInfo
- the client info- Returns:
- a unique id (to be used when disconnecting)
-
disconnect
Sign off.- Parameters:
id
- the unique id
-