Class ConfigUpdatedEvent
- java.lang.Object
-
- com.couchbase.client.core.event.system.ConfigUpdatedEvent
-
- All Implemented Interfaces:
CouchbaseEvent
public class ConfigUpdatedEvent extends Object implements CouchbaseEvent
Event published when a new bucket config is applied to the core.- Since:
- 1.2.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description ConfigUpdatedEvent(ClusterConfig clusterConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<InetAddress>
clusterNodes()
Deprecated.please useclusterNodesAsStrings()
instead.Set<String>
clusterNodesAsStrings()
Returns the hostname of all nodes that are part of the cluster config.Set<String>
openBuckets()
Returns all open bucket names.Map<String,Object>
toMap()
Converts the event into a map representation of simple types.String
toString()
EventType
type()
The type of the event.
-
-
-
Constructor Detail
-
ConfigUpdatedEvent
public ConfigUpdatedEvent(ClusterConfig clusterConfig)
-
-
Method Detail
-
clusterNodes
@Deprecated public Set<InetAddress> clusterNodes()
Deprecated.please useclusterNodesAsStrings()
instead.Returns theInetAddress
of all nodes that are part of the cluster config.
-
clusterNodesAsStrings
public Set<String> clusterNodesAsStrings()
Returns the hostname of all nodes that are part of the cluster config.
-
type
public EventType type()
Description copied from interface:CouchbaseEvent
The type of the event.- Specified by:
type
in interfaceCouchbaseEvent
- Returns:
- the event type.
-
toMap
public Map<String,Object> toMap()
Description copied from interface:CouchbaseEvent
Converts the event into a map representation of simple types.- Specified by:
toMap
in interfaceCouchbaseEvent
- Returns:
- the map representation.
-
-