@ThreadSafe public final class BlockMasterClientPool extends alluxio.resource.ResourcePool<BlockMasterClient>
ResourcePool.acquire(), ResourcePool.release(Object) must be called when the
thread is done using the client.| Constructor and Description |
|---|
BlockMasterClientPool(alluxio.master.MasterClientContext ctx)
Creates a new block master client pool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected BlockMasterClient |
createNewResource() |
public BlockMasterClientPool(alluxio.master.MasterClientContext ctx)
ctx - the information required for connecting to Alluxiopublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class alluxio.resource.ResourcePool<BlockMasterClient>IOExceptionprotected BlockMasterClient createNewResource()
createNewResource in class alluxio.resource.ResourcePool<BlockMasterClient>Copyright © 2024. All Rights Reserved.