public class Events extends Object
Utility methods for event handling.
Constructor and Description |
---|
Events() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
identityMap(CouchbaseEvent source)
Takes a
CouchbaseEvent and returns a map with event information. |
static String |
toJson(CouchbaseEvent source,
boolean pretty)
Takes a
CouchbaseEvent and generates a JSON string. |
public static Map<String,Object> identityMap(CouchbaseEvent source)
Takes a CouchbaseEvent
and returns a map with event information.
source
- the source event.public static String toJson(CouchbaseEvent source, boolean pretty)
Takes a CouchbaseEvent
and generates a JSON string.
source
- the source event.pretty
- if pretty print should be used.Copyright © 2018 Couchbase, Inc.. All rights reserved.