public class ResourceManager<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceManager.CloseableResourceManagerBuilder<T extends Closeable> |
static class |
ResourceManager.ResourceManagerBuilder<T> |
Modifier | Constructor and Description |
---|---|
protected |
ResourceManager(rx.functions.Func0<T> resourceFactory,
rx.functions.Action1<? super T> disposeAction,
boolean disposeEagerly) |
Modifier and Type | Method and Description |
---|---|
static <T extends Closeable> |
closeableResourceFactory(rx.functions.Func0<T> resourceFactory) |
static <T extends Closeable> |
create(Callable<T> resourceFactory) |
static <T> ResourceManager<T> |
create(Callable<T> resourceFactory,
rx.functions.Action1<? super T> disposeAction) |
static <T> ResourceManager<T> |
create(Callable<T> resourceFactory,
Checked.A1<? super T> disposeAction) |
static <T extends Closeable> |
create(rx.functions.Func0<T> resourceFactory) |
static <T> ResourceManager<T> |
create(rx.functions.Func0<T> resourceFactory,
rx.functions.Action1<? super T> disposeAction) |
<R> ResourceManager<R> |
map(Checked.F1<? super T,? extends R> resourceMapper,
Checked.A1<? super R> disposeAction) |
<R extends Closeable> |
map(rx.functions.Func1<? super T,? extends R> resourceMapper) |
<R> ResourceManager<R> |
map(rx.functions.Func1<? super T,? extends R> resourceMapper,
rx.functions.Action1<? super R> disposeAction) |
<R> rx.Observable<R> |
observable(rx.functions.Func1<? super T,? extends rx.Observable<? extends R>> observableFactory) |
static <T> ResourceManager.ResourceManagerBuilder<T> |
resourceFactory(rx.functions.Func0<T> resourceFactory) |
public static <T> ResourceManager.ResourceManagerBuilder<T> resourceFactory(rx.functions.Func0<T> resourceFactory)
public static <T extends Closeable> ResourceManager.CloseableResourceManagerBuilder<T> closeableResourceFactory(rx.functions.Func0<T> resourceFactory)
public static <T> ResourceManager<T> create(rx.functions.Func0<T> resourceFactory, rx.functions.Action1<? super T> disposeAction)
public static <T> ResourceManager<T> create(Callable<T> resourceFactory, rx.functions.Action1<? super T> disposeAction)
public static <T> ResourceManager<T> create(Callable<T> resourceFactory, Checked.A1<? super T> disposeAction)
public static <T extends Closeable> ResourceManager<T> create(rx.functions.Func0<T> resourceFactory)
public static <T extends Closeable> ResourceManager<T> create(Callable<T> resourceFactory)
public <R> rx.Observable<R> observable(rx.functions.Func1<? super T,? extends rx.Observable<? extends R>> observableFactory)
public <R> ResourceManager<R> map(Checked.F1<? super T,? extends R> resourceMapper, Checked.A1<? super R> disposeAction)
public <R> ResourceManager<R> map(rx.functions.Func1<? super T,? extends R> resourceMapper, rx.functions.Action1<? super R> disposeAction)
public <R extends Closeable> ResourceManager<R> map(rx.functions.Func1<? super T,? extends R> resourceMapper)
Copyright © 2013–2016. All rights reserved.