public class LoggingConsumer extends Subscriber<CouchbaseEvent>
Consumes CouchbaseEvents and logs them.
| Modifier and Type | Class and Description |
|---|---|
static class |
LoggingConsumer.OutputFormat
The target output format to log.
|
| Modifier and Type | Field and Description |
|---|---|
static LoggingConsumer.OutputFormat |
DEFAULT_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
static LoggingConsumer |
create() |
static LoggingConsumer |
create(CouchbaseLogLevel level,
LoggingConsumer.OutputFormat outputFormat) |
void |
onCompleted() |
void |
onError(Throwable ex) |
void |
onNext(CouchbaseEvent event) |
add, isUnsubscribed, onStart, request, setProducer, unsubscribepublic static final LoggingConsumer.OutputFormat DEFAULT_FORMAT
public static LoggingConsumer create()
public static LoggingConsumer create(CouchbaseLogLevel level, LoggingConsumer.OutputFormat outputFormat)
public void onCompleted()
public void onError(Throwable ex)
public void onNext(CouchbaseEvent event)
Copyright © 2016 Couchbase, Inc.. All rights reserved.