Class CachingArtifactLinkDataProviderDecorator
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.CachingArtifactLinkDataProviderDecorator
-
- All Implemented Interfaces:
ArtifactLinkDataProvider
public class CachingArtifactLinkDataProviderDecorator extends Object implements ArtifactLinkDataProvider
Caches all values returned from the decorated provider.
-
-
Constructor Summary
Constructors Constructor Description CachingArtifactLinkDataProviderDecorator(ArtifactLinkDataProvider artifactLinkDataProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArtifactLinkDataProvider
decorate(ArtifactLinkDataProvider artifactLinkDataProvider)
boolean
exists()
boolean
exists(Iterable<String> pathComponents)
@NotNull String
getRootUrl()
long
getSize()
@Nullable Date
lastModified()
@NotNull Iterable<ArtifactFileData>
listObjects(@Nullable String subpath)
-
-
-
Constructor Detail
-
CachingArtifactLinkDataProviderDecorator
public CachingArtifactLinkDataProviderDecorator(ArtifactLinkDataProvider artifactLinkDataProvider)
-
-
Method Detail
-
getRootUrl
@NotNull public @NotNull String getRootUrl()
- Specified by:
getRootUrl
in interfaceArtifactLinkDataProvider
-
listObjects
@NotNull public @NotNull Iterable<ArtifactFileData> listObjects(@Nullable @Nullable String subpath)
- Specified by:
listObjects
in interfaceArtifactLinkDataProvider
-
lastModified
@Nullable public @Nullable Date lastModified()
- Specified by:
lastModified
in interfaceArtifactLinkDataProvider
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceArtifactLinkDataProvider
-
exists
public boolean exists()
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
exists
public boolean exists(Iterable<String> pathComponents)
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
decorate
public static ArtifactLinkDataProvider decorate(ArtifactLinkDataProvider artifactLinkDataProvider)
-
-