public class GenericZkBasedNodeBuilder<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
GenericZkBasedNodeBuilder<T> |
addFactoryFailedListener(com.github.phantomthief.util.ThrowableBiConsumer<org.apache.curator.framework.recipes.cache.ChildData,Throwable,Throwable> listener) |
GenericZkBasedNodeBuilder<T> |
addFactoryFailedListener(com.github.phantomthief.util.ThrowableConsumer<Throwable,Throwable> listener) |
GenericZkBasedNodeBuilder<T> |
asyncRefresh(com.google.common.util.concurrent.ListeningExecutorService executor) |
ZkBasedNodeResource<T> |
build() |
GenericZkBasedNodeBuilder<T> |
onResourceChange(BiConsumer<? super T,? super T> callback) |
GenericZkBasedNodeBuilder<T> |
withAsyncRefreshFactory(com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withAsyncRefreshFactory(com.github.phantomthief.util.ThrowableFunction<byte[],com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withAsyncRefreshStringFactory(com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withAsyncRefreshStringFactory(com.github.phantomthief.util.ThrowableFunction<String,com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withCacheFactory(String path,
org.apache.curator.framework.CuratorFramework curator) |
GenericZkBasedNodeBuilder<T> |
withCacheFactory(String path,
Supplier<org.apache.curator.framework.CuratorFramework> curatorFactory) |
GenericZkBasedNodeBuilder<T> |
withCacheFactory(Supplier<org.apache.curator.framework.recipes.cache.NodeCache> cacheFactory) |
GenericZkBasedNodeBuilder<T> |
withCleanupConsumer(com.github.phantomthief.util.ThrowableConsumer<? super T,Throwable> cleanup) |
GenericZkBasedNodeBuilder<T> |
withCleanupPredicate(Predicate<? super T> cleanup) |
GenericZkBasedNodeBuilder<T> |
withEmptyObject(T emptyObject) |
GenericZkBasedNodeBuilder<T> |
withFactory(BiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T> factory)
Deprecated.
|
GenericZkBasedNodeBuilder<T> |
withFactory(Function<byte[],? extends T> factory)
Deprecated.
|
GenericZkBasedNodeBuilder<T> |
withFactoryEx(com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withFactoryEx(com.github.phantomthief.util.ThrowableFunction<byte[],? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshFactory(com.google.common.util.concurrent.ListeningExecutorService executor,
com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshFactory(com.google.common.util.concurrent.ListeningExecutorService executor,
com.github.phantomthief.util.ThrowableFunction<byte[],? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshFactory(com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshFactory(com.github.phantomthief.util.ThrowableFunction<byte[],? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshStringFactory(com.google.common.util.concurrent.ListeningExecutorService executor,
com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshStringFactory(com.google.common.util.concurrent.ListeningExecutorService executor,
com.github.phantomthief.util.ThrowableFunction<String,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshStringFactory(com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withRefreshStringFactory(com.github.phantomthief.util.ThrowableFunction<String,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withStringFactory(BiFunction<String,org.apache.zookeeper.data.Stat,? extends T> factory)
Deprecated.
|
GenericZkBasedNodeBuilder<T> |
withStringFactory(Function<String,? extends T> factory)
Deprecated.
|
GenericZkBasedNodeBuilder<T> |
withStringFactoryEx(com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withStringFactoryEx(com.github.phantomthief.util.ThrowableFunction<String,? extends T,Exception> factory) |
GenericZkBasedNodeBuilder<T> |
withWaitStopPeriod(long waitStopPeriod) |
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> addFactoryFailedListener(@Nonnull com.github.phantomthief.util.ThrowableConsumer<Throwable,Throwable> listener)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> addFactoryFailedListener(@Nonnull com.github.phantomthief.util.ThrowableBiConsumer<org.apache.curator.framework.recipes.cache.ChildData,Throwable,Throwable> listener)
@Deprecated @CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withFactory(BiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withFactoryEx(com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> asyncRefresh(@Nonnull com.google.common.util.concurrent.ListeningExecutorService executor)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> onResourceChange(BiConsumer<? super T,? super T> callback)
@Deprecated @CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withFactory(Function<byte[],? extends T> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withFactoryEx(com.github.phantomthief.util.ThrowableFunction<byte[],? extends T,Exception> factory)
@Deprecated @CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withStringFactory(BiFunction<String,org.apache.zookeeper.data.Stat,? extends T> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withStringFactoryEx(com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,? extends T,Exception> factory)
@Deprecated @CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withStringFactory(Function<String,? extends T> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withStringFactoryEx(com.github.phantomthief.util.ThrowableFunction<String,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withCacheFactory(Supplier<org.apache.curator.framework.recipes.cache.NodeCache> cacheFactory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withCacheFactory(String path, org.apache.curator.framework.CuratorFramework curator)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withCacheFactory(String path, Supplier<org.apache.curator.framework.CuratorFramework> curatorFactory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withCleanupConsumer(com.github.phantomthief.util.ThrowableConsumer<? super T,Throwable> cleanup)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withCleanupPredicate(Predicate<? super T> cleanup)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withWaitStopPeriod(long waitStopPeriod)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withEmptyObject(T emptyObject)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshFactory(@Nonnull com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshFactory(@Nullable com.google.common.util.concurrent.ListeningExecutorService executor, @Nonnull com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withAsyncRefreshFactory(@Nonnull com.github.phantomthief.util.ThrowableBiFunction<byte[],org.apache.zookeeper.data.Stat,com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshFactory(@Nonnull com.github.phantomthief.util.ThrowableFunction<byte[],? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshFactory(@Nullable com.google.common.util.concurrent.ListeningExecutorService executor, @Nonnull com.github.phantomthief.util.ThrowableFunction<byte[],? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withAsyncRefreshFactory(com.github.phantomthief.util.ThrowableFunction<byte[],com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshStringFactory(@Nonnull com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshStringFactory(@Nullable com.google.common.util.concurrent.ListeningExecutorService executor, @Nonnull com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withAsyncRefreshStringFactory(@Nonnull com.github.phantomthief.util.ThrowableBiFunction<String,org.apache.zookeeper.data.Stat,com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshStringFactory(@Nonnull com.github.phantomthief.util.ThrowableFunction<String,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withRefreshStringFactory(@Nullable com.google.common.util.concurrent.ListeningExecutorService executor, @Nonnull com.github.phantomthief.util.ThrowableFunction<String,? extends T,Exception> factory)
@CheckReturnValue @Nonnull public GenericZkBasedNodeBuilder<T> withAsyncRefreshStringFactory(com.github.phantomthief.util.ThrowableFunction<String,com.google.common.util.concurrent.ListenableFuture<T>,Exception> factory)
@Nonnull public ZkBasedNodeResource<T> build()
Copyright © 2019. All rights reserved.