Class DocumentBroadcastConfig
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.DocumentBroadcastConfig
- All Implemented Interfaces:
DynamicBroadcastConfig
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.plugins.document.persistentCache.broadcast.DynamicBroadcastConfig
ID, LISTENER
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DocumentBroadcastConfig
-
-
Method Details
-
getConfig
Description copied from interface:DynamicBroadcastConfig
Get the global configuration data that is not associated to a specific client.- Specified by:
getConfig
in interfaceDynamicBroadcastConfig
- Returns:
- the configuration
-
getClientInfo
Description copied from interface:DynamicBroadcastConfig
Get the client info of all connected clients.- Specified by:
getClientInfo
in interfaceDynamicBroadcastConfig
- Returns:
- the list of client info maps
-
connect
Description copied from interface:DynamicBroadcastConfig
Announce a new client to others.- Specified by:
connect
in interfaceDynamicBroadcastConfig
- Parameters:
clientInfo
- the client info- Returns:
- a unique id (to be used when disconnecting)
-
disconnect
Description copied from interface:DynamicBroadcastConfig
Sign off.- Specified by:
disconnect
in interfaceDynamicBroadcastConfig
- Parameters:
id
- the unique id
-