public class CommandClientPool extends ObjectPool<CommandClient>
locked, unlocked| Constructor and Description |
|---|
CommandClientPool(int expirationInSeconds,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
CommandClient |
checkOut() |
protected CommandClient |
create() |
void |
expire(CommandClient o) |
boolean |
validate(CommandClient o) |
checkInpublic CommandClientPool(int expirationInSeconds,
String host,
int port)
protected CommandClient create() throws IOException
create in class ObjectPool<CommandClient>IOExceptionpublic boolean validate(CommandClient o)
validate in class ObjectPool<CommandClient>public void expire(CommandClient o)
expire in class ObjectPool<CommandClient>public CommandClient checkOut()
checkOut in class ObjectPool<CommandClient>Copyright © 2018. All rights reserved.