| Package | Description |
|---|---|
| com.github.unidbg.worker |
| Modifier and Type | Class and Description |
|---|---|
class |
WorkerLoan<T extends Worker>
Worker 的借出凭证,实现
AutoCloseable 以支持 try-with-resources 自动归还。 |
| Modifier and Type | Method and Description |
|---|---|
<T extends Worker> |
WorkerPool.borrow(long timeout,
TimeUnit unit)
从池中借出一个 Worker,返回
WorkerLoan 包装器。 |
| Modifier and Type | Method and Description |
|---|---|
Worker |
WorkerFactory.createWorker()
创建一个新的 Worker 实例。
|
| Modifier and Type | Method and Description |
|---|---|
void |
WorkerPool.release(Worker worker)
将 Worker 归还到池中。通常不需要直接调用,
由
WorkerLoan.close() 自动处理。 |
Copyright © 2026. All rights reserved.