public class HPCCWsClientPool extends ObjectPool<HPCCWsClient>
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_EXPIRE_MILLIS |
Constructor and Description |
---|
HPCCWsClientPool(Connection connection)
Instantiates a new HPCC ws client pool.
|
HPCCWsClientPool(Connection connection,
long timeout)
Instantiates a new HPCC ws client pool.
|
HPCCWsClientPool(String protocol,
String targetWsECLWatchAddress,
String targetWsECLWatchPort,
String user,
String password)
Instantiates a new HPCC ws client pool.
|
HPCCWsClientPool(String protocol,
String targetWsECLWatchAddress,
String targetWsECLWatchPort,
String user,
String password,
long timeout)
Instantiates a new HPCC ws client pool.
|
Modifier and Type | Method and Description |
---|---|
protected HPCCWsClient |
create() |
void |
expire(HPCCWsClient client) |
boolean |
validate(HPCCWsClient client) |
checkIn, checkOut
public static final long DEFAULT_EXPIRE_MILLIS
public HPCCWsClientPool(String protocol, String targetWsECLWatchAddress, String targetWsECLWatchPort, String user, String password, long timeout)
protocol
- the protocoltargetWsECLWatchAddress
- the target ws ECL watch addresstargetWsECLWatchPort
- the target ws ECL watch portuser
- the userpassword
- the passwordtimeout
- the timeoutpublic HPCCWsClientPool(String protocol, String targetWsECLWatchAddress, String targetWsECLWatchPort, String user, String password)
protocol
- the protocoltargetWsECLWatchAddress
- the target ws ECL watch addresstargetWsECLWatchPort
- the target ws ECL watch portuser
- the userpassword
- the passwordpublic HPCCWsClientPool(Connection connection)
connection
- the connectionpublic HPCCWsClientPool(Connection connection, long timeout)
connection
- the connectiontimeout
- the timeoutprotected HPCCWsClient create()
create
in class ObjectPool<HPCCWsClient>
public boolean validate(HPCCWsClient client)
validate
in class ObjectPool<HPCCWsClient>
public void expire(HPCCWsClient client)
expire
in class ObjectPool<HPCCWsClient>
Copyright © 2020. All rights reserved.