public final class BlockMasterClientPool extends ResourcePool<BlockMasterClient>
ResourcePool.acquire()
, ResourcePool.release(T)
must be called when the thread is done
using the client.mCapacityLock, mCurrentCapacity, mMaxCapacity, mResources
Constructor and Description |
---|
BlockMasterClientPool(InetSocketAddress masterAddress)
Creates a new block master client pool.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected BlockMasterClient |
createNewResource() |
acquire, release
public BlockMasterClientPool(InetSocketAddress masterAddress)
masterAddress
- the master addresspublic void close()
close
in class ResourcePool<BlockMasterClient>
protected BlockMasterClient createNewResource()
createNewResource
in class ResourcePool<BlockMasterClient>
Copyright © 2015. All Rights Reserved.