public class BookKeeperBuilderImpl extends java.lang.Object implements BookKeeperBuilder
BookKeeper client.| Constructor and Description |
|---|
BookKeeperBuilderImpl(ClientConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
BookKeeperBuilder |
allocator(io.netty.buffer.ByteBufAllocator allocator)
Configure the bookkeeper client with a provided
ByteBufAllocator. |
BookKeeper |
build()
Start and initialize a new BookKeeper client.
|
BookKeeperBuilder |
dnsResolver(org.apache.bookkeeper.net.DNSToSwitchMapping dnsResolver)
Configure the bookkeeper client to use the provided dns resolver
DNSToSwitchMapping. |
BookKeeperBuilder |
eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Configure the bookkeeper client with a provided Netty EventLoopGroup.
|
BookKeeperBuilder |
featureProvider(FeatureProvider featureProvider)
Configure the bookkeeper client to use a provided
FeatureProvider. |
BookKeeperBuilder |
requestTimer(io.netty.util.HashedWheelTimer requeestTimer)
Configure the bookkeeper client to use a provided Netty HashedWheelTimer.
|
BookKeeperBuilder |
statsLogger(org.apache.bookkeeper.stats.StatsLogger statsLogger)
Configure the bookkeeper client with a provided
StatsLogger. |
public BookKeeperBuilderImpl(ClientConfiguration conf)
public BookKeeperBuilder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
BookKeeperBuildereventLoopGroup in interface BookKeeperBuildereventLoopGroup - an external EventLoopGroup to use by the bookkeeper client.public BookKeeperBuilder allocator(io.netty.buffer.ByteBufAllocator allocator)
BookKeeperBuilderByteBufAllocator.allocator in interface BookKeeperBuilderallocator - an external ByteBufAllocator to use by the bookkeeper client.public BookKeeperBuilder statsLogger(org.apache.bookkeeper.stats.StatsLogger statsLogger)
BookKeeperBuilderStatsLogger.statsLogger in interface BookKeeperBuilderstatsLogger - an StatsLogger to use by the bookkeeper client to collect stats generated by the
client.public BookKeeperBuilder dnsResolver(org.apache.bookkeeper.net.DNSToSwitchMapping dnsResolver)
BookKeeperBuilderDNSToSwitchMapping.dnsResolver in interface BookKeeperBuilderdnsResolver - dns resolver for placement policy to use for resolving network locations.public BookKeeperBuilder requestTimer(io.netty.util.HashedWheelTimer requeestTimer)
BookKeeperBuilderrequestTimer in interface BookKeeperBuilderrequeestTimer - request timer for client to manage timer related tasks.public BookKeeperBuilder featureProvider(FeatureProvider featureProvider)
BookKeeperBuilderFeatureProvider.featureProvider in interface BookKeeperBuilderfeatureProvider - the feature providerpublic BookKeeper build() throws java.lang.InterruptedException, BKException, java.io.IOException
BookKeeperBuilderbuild in interface BookKeeperBuilderjava.lang.InterruptedExceptionBKExceptionjava.io.IOExceptionCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.