public class LoggingConsumer extends rx.Subscriber<CouchbaseEvent>
Consumes CouchbaseEvent
s 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) |
public 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 © 2018 Couchbase, Inc.. All rights reserved.