public class BucketConsumer extends rx.Subscriber<CouchbaseEvent>
CouchbaseEvent
s and logs them into a bucket as JSON.Modifier and Type | Class and Description |
---|---|
static class |
BucketConsumer.StoreType
How the event should be stored.
|
Modifier and Type | Method and Description |
---|---|
static BucketConsumer |
create(Bucket bucket) |
static BucketConsumer |
create(Bucket bucket,
BucketConsumer.StoreType storeType) |
protected String |
generateKey(CouchbaseEvent event)
Default method to generate the key for the given event.
|
void |
onCompleted() |
void |
onError(Throwable ex) |
void |
onNext(CouchbaseEvent event) |
public static BucketConsumer create(Bucket bucket)
public static BucketConsumer create(Bucket bucket, BucketConsumer.StoreType storeType)
public void onCompleted()
public void onError(Throwable ex)
public void onNext(CouchbaseEvent event)
protected String generateKey(CouchbaseEvent event)
event
- the event to store.Copyright © 2015 Couchbase, Inc.