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 Details

    • TooManyEnvironmentsEvent

      public TooManyEnvironmentsEvent​(int numEnvs)
  • Method Details

    • type

      public EventType type()
      Description copied from interface: CouchbaseEvent
      The type of the event.
      Specified by:
      type in interface CouchbaseEvent
      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 interface CouchbaseEvent
      Returns:
      the map representation.
    • toString

      public String toString()
      Overrides:
      toString in class Object