@InterfaceAudience.Public @InterfaceStability.Unstable public interface BookKeeperBuilder
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 requestTimer)
Configure the bookkeeper client to use a provided Netty HashedWheelTimer.
|
BookKeeperBuilder |
statsLogger(StatsLogger statsLogger)
Configure the bookkeeper client with a provided
StatsLogger . |
BookKeeperBuilder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
eventLoopGroup
- an external EventLoopGroup
to use by the bookkeeper client.BookKeeperBuilder allocator(io.netty.buffer.ByteBufAllocator allocator)
ByteBufAllocator
.allocator
- an external ByteBufAllocator
to use by the bookkeeper client.BookKeeperBuilder statsLogger(StatsLogger statsLogger)
StatsLogger
.statsLogger
- an StatsLogger
to use by the bookkeeper client to collect stats generated by the
client.BookKeeperBuilder dnsResolver(org.apache.bookkeeper.net.DNSToSwitchMapping dnsResolver)
DNSToSwitchMapping
.dnsResolver
- dns resolver for placement policy to use for resolving network locations.BookKeeperBuilder requestTimer(io.netty.util.HashedWheelTimer requestTimer)
requestTimer
- request timer for client to manage timer related tasks.BookKeeperBuilder featureProvider(FeatureProvider featureProvider)
FeatureProvider
.featureProvider
- the feature providerBookKeeper build() throws BKException, java.lang.InterruptedException, java.io.IOException
BKException
java.lang.InterruptedException
java.io.IOException
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.