public class ThreadPool
extends GenericObjectPool
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_THREADS |
| Constructor and Description |
|---|
ThreadPool(String tenantID,
int poolsize) |
| Modifier and Type | Method and Description |
|---|---|
Object |
borrowObject() |
PoolableThread |
borrowThread() |
void |
close() |
static ThreadPool |
getInstance() |
void |
returnObject(Object thread) |
void |
returnThread(PoolableThread thread) |
public static final int DEFAULT_MAX_THREADS
public ThreadPool(String tenantID, int poolsize)
public static ThreadPool getInstance()
public final Object borrowObject()
public final void returnThread(PoolableThread thread) throws Exception
Exceptionpublic final PoolableThread borrowThread()
public void close()
Copyright © 2017 SAP SE. All Rights Reserved.