public class Buffers extends Object
ByteBuf
.Modifier and Type | Field and Description |
---|---|
static rx.functions.Action1 |
BYTE_BUF_RELEASER
An rx
Action1 that releases (once) a non-null ByteBuf provided its refCnt is > 0. |
Constructor and Description |
---|
Buffers() |
Modifier and Type | Method and Description |
---|---|
static <T> rx.Observable<T> |
wrapColdWithAutoRelease(rx.Observable<T> source)
Wrap an observable and free a reference counted item if unsubscribed in the meantime.
|
public static final rx.functions.Action1 BYTE_BUF_RELEASER
Action1
that releases (once) a non-null ByteBuf
provided its refCnt is > 0.public static <T> rx.Observable<T> wrapColdWithAutoRelease(rx.Observable<T> source)
source
- the source observable to wrap.Copyright © 2019 Couchbase, Inc.. All rights reserved.