Class BookKeeperBuilderImpl
- java.lang.Object
- 
- org.apache.bookkeeper.client.impl.BookKeeperBuilderImpl
 
- 
- All Implemented Interfaces:
- BookKeeperBuilder
 
 public class BookKeeperBuilderImpl extends java.lang.Object implements BookKeeperBuilder Internal builder forBookKeeperclient.- Since:
- 4.6
 
- 
- 
Constructor SummaryConstructors Constructor Description BookKeeperBuilderImpl(ClientConfiguration conf)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BookKeeperBuilderallocator(io.netty.buffer.ByteBufAllocator allocator)Configure the bookkeeper client with a providedByteBufAllocator.BookKeeperbuild()Start and initialize a new BookKeeper client.BookKeeperBuilderdnsResolver(DNSToSwitchMapping dnsResolver)Configure the bookkeeper client to use the provided dns resolverDNSToSwitchMapping.BookKeeperBuildereventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)Configure the bookkeeper client with a provided Netty EventLoopGroup.BookKeeperBuilderfeatureProvider(FeatureProvider featureProvider)Configure the bookkeeper client to use a providedFeatureProvider.BookKeeperBuilderrequestTimer(io.netty.util.HashedWheelTimer requeestTimer)Configure the bookkeeper client to use a provided Netty HashedWheelTimer.BookKeeperBuilderstatsLogger(StatsLogger statsLogger)Configure the bookkeeper client with a providedStatsLogger.
 
- 
- 
- 
Constructor Detail- 
BookKeeperBuilderImplpublic BookKeeperBuilderImpl(ClientConfiguration conf) 
 
- 
 - 
Method Detail- 
eventLoopGrouppublic BookKeeperBuilder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup) Description copied from interface:BookKeeperBuilderConfigure the bookkeeper client with a provided Netty EventLoopGroup.- Specified by:
- eventLoopGroupin interface- BookKeeperBuilder
- Parameters:
- eventLoopGroup- an external- EventLoopGroupto use by the bookkeeper client.
- Returns:
- client builder.
 
 - 
allocatorpublic BookKeeperBuilder allocator(io.netty.buffer.ByteBufAllocator allocator) Description copied from interface:BookKeeperBuilderConfigure the bookkeeper client with a providedByteBufAllocator.- Specified by:
- allocatorin interface- BookKeeperBuilder
- Parameters:
- allocator- an external- ByteBufAllocatorto use by the bookkeeper client.
- Returns:
- client builder.
 
 - 
statsLoggerpublic BookKeeperBuilder statsLogger(StatsLogger statsLogger) Description copied from interface:BookKeeperBuilderConfigure the bookkeeper client with a providedStatsLogger.- Specified by:
- statsLoggerin interface- BookKeeperBuilder
- Parameters:
- statsLogger- an- StatsLoggerto use by the bookkeeper client to collect stats generated by the client.
- Returns:
- client builder.
 
 - 
dnsResolverpublic BookKeeperBuilder dnsResolver(DNSToSwitchMapping dnsResolver) Description copied from interface:BookKeeperBuilderConfigure the bookkeeper client to use the provided dns resolverDNSToSwitchMapping.- Specified by:
- dnsResolverin interface- BookKeeperBuilder
- Parameters:
- dnsResolver- dns resolver for placement policy to use for resolving network locations.
- Returns:
- client builder
 
 - 
requestTimerpublic BookKeeperBuilder requestTimer(io.netty.util.HashedWheelTimer requeestTimer) Description copied from interface:BookKeeperBuilderConfigure the bookkeeper client to use a provided Netty HashedWheelTimer.- Specified by:
- requestTimerin interface- BookKeeperBuilder
- Parameters:
- requeestTimer- request timer for client to manage timer related tasks.
- Returns:
- client builder
 
 - 
featureProviderpublic BookKeeperBuilder featureProvider(FeatureProvider featureProvider) Description copied from interface:BookKeeperBuilderConfigure the bookkeeper client to use a providedFeatureProvider.- Specified by:
- featureProviderin interface- BookKeeperBuilder
- Parameters:
- featureProvider- the feature provider
- Returns:
- client builder
 
 - 
buildpublic BookKeeper build() throws java.lang.InterruptedException, BKException, java.io.IOException Description copied from interface:BookKeeperBuilderStart and initialize a new BookKeeper client.- Specified by:
- buildin interface- BookKeeperBuilder
- Returns:
- the client
- Throws:
- java.lang.InterruptedException
- BKException
- java.io.IOException
 
 
- 
 
-