testcontainers-1.12.1.jar
登录
|
org.testcontainers:testcontainers:1.12.1
META-INF
org
testcontainers
lifecycle
Testcontainers.java
utility
LogUtils.java
MountableFile.java
ComparableVersion.java
DockerStatus.java
AuditLogger.java
LazyFuture.java
TestEnvironment.java
TestcontainersConfiguration.java
ThrowingFunction.java
LicenseAcceptance.java
Base58.java
DockerImageName.java
CommandLine.java
DockerLoggerFactory.java
DockerMachineClient.java
AuthConfigUtil.java
RegistryAuthLocator.java
ResourceReaper.java
PathUtils.java
DockerClientFactory.java
images
containers
dockerclient
LazyFuture.java
清空
类结构
// Generated by delombok at Sun Sep 08 08:37:39 UTC 2019 package org.testcontainers.utility; import org.rnorth.ducttape.timeouts.
Timeouts
; import java.util.concurrent.*; /** * Future implementation with lazy result evaluation <b>in the same Thread</b> as caller. * * @param <T> */ public abstract class
LazyFuture
<T> implements
Future
<T> { private final
Future
<T>
delegate
=
CompletableFuture
.
completedFuture
(null); private final java.util.concurrent.atomic.
AtomicReference
<java.lang.
Object
>
resolvedValue
= new java.util.concurrent.atomic.
AtomicReference
<java.lang.
Object
>(); protected abstract T
resolve
(); @
Override
public T
get
() throws
InterruptedException
,
ExecutionException
{ return
getResolvedValue
(); } @
Override
public T
get
(long
timeout
,
TimeUnit
unit
) throws
InterruptedException
,
ExecutionException
,
TimeoutException
{ try { return
Timeouts
.
getWithTimeout
((int)
timeout
,
unit
, this::get); } catch (org.rnorth.ducttape.
TimeoutException
e
) { throw new
TimeoutException
(
e
.
getMessage
()); } } private interface
Excludes
<T> { T
get
(); T
get
(long
timeout
,
TimeUnit
unit
); } @java.lang.
SuppressWarnings
("all") T
getResolvedValue
() { java.lang.
Object
value
= this.
resolvedValue
.
get
(); if (
value
== null) { synchronized (this.
resolvedValue
) {
value
= this.
resolvedValue
.
get
(); if (
value
== null) { final T
actualValue
=
resolve
();
value
=
actualValue
== null ? this.
resolvedValue
:
actualValue
; this.
resolvedValue
.
set
(
value
); } } } return (T) (
value
== this.
resolvedValue
? null :
value
); } @java.lang.
SuppressWarnings
("all") public boolean
cancel
(final boolean
arg0
) { return this.
delegate
.
cancel
(
arg0
); } @java.lang.
SuppressWarnings
("all") public boolean
isCancelled
() { return this.
delegate
.
isCancelled
(); } @java.lang.
SuppressWarnings
("all") public boolean
isDone
() { return this.
delegate
.
isDone
(); } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口