ContainerOpener.ContainerFuture
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
公共方法
public
abstract
Container
get
()
等待容器可用,并返回请求的容器。
此方法将一直保持阻止状态,直到容器可用为止。
public abstract 布尔值
isDone
()
返回
- 如果容器可用,则为 true。如果
get() 阻塞并等待容器可用,则返回 false。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["`ContainerFuture` provides an interface to retrieve a `Container`. The `get()` method blocks until a `Container` is available and then returns it. The `isDone()` method checks if a `Container` is already available, returning `true` if so, and `false` if `get()` will block. `isDone` could be the default container, to check if this is the case use `isDefault()`. `get()` waits for the container to be ready and returns it.\n"]]