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