Class TooManyEnvironmentsEvent
- java.lang.Object
-
- com.couchbase.client.core.event.system.TooManyEnvironmentsEvent
-
- All Implemented Interfaces:
CouchbaseEvent
public class TooManyEnvironmentsEvent extends Object implements CouchbaseEvent
Event published when more than one Environments are created.- Since:
- 1.3.2
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description TooManyEnvironmentsEvent(int numEnvs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
numEnvs()
The number of open environments at the time of the event.Map<String,Object>
toMap()
Converts the event into a map representation of simple types.String
toString()
EventType
type()
The type of the event.
-
-
-
Method Detail
-
type
public EventType type()
Description copied from interface:CouchbaseEvent
The type of the event.- Specified by:
type
in interfaceCouchbaseEvent
- Returns:
- the event type.
-
numEnvs
public int numEnvs()
The number of open environments at the time of the event.
-
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.
-
-