Package org.apache.iceberg
Class ClientPoolImpl<C,E extends Exception>
java.lang.Object
org.apache.iceberg.ClientPoolImpl<C,E>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ClientPool<C,
E>
- Direct Known Subclasses:
HiveClientPool
,JdbcClientPool
public abstract class ClientPoolImpl<C,E extends Exception>
extends Object
implements Closeable, ClientPool<C,E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.ClientPool
ClientPool.Action<R,
C, E extends Exception> -
Constructor Summary
ConstructorDescriptionClientPoolImpl
(int poolSize, Class<? extends E> reconnectExc, boolean retryByDefault) ClientPoolImpl
(int poolSize, Class<? extends E> reconnectExc, boolean retryByDefault, int maxConnectionRetries) -
Method Summary
-
Constructor Details
-
ClientPoolImpl
-
ClientPoolImpl
-
-
Method Details
-
run
- Specified by:
run
in interfaceClientPool<C,
E extends Exception> - Throws:
E
InterruptedException
-
run
- Specified by:
run
in interfaceClientPool<C,
E extends Exception> - Throws:
E
InterruptedException
-
newClient
-
reconnect
-
isConnectionException
-
close
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
poolSize
public int poolSize() -
isClosed
public boolean isClosed()
-