public class CachingArtifactLinkDataProviderDecorator extends Object implements ArtifactLinkDataProvider
Modifier and Type | Field and Description |
---|---|
Supplier<Date> |
lastModified |
Supplier<Long> |
size |
Constructor and Description |
---|
CachingArtifactLinkDataProviderDecorator(ArtifactLinkDataProvider artifactLinkDataProvider) |
Modifier and Type | Method and 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) |
public CachingArtifactLinkDataProviderDecorator(ArtifactLinkDataProvider artifactLinkDataProvider)
@NotNull public @NotNull String getRootUrl()
getRootUrl
in interface ArtifactLinkDataProvider
@NotNull public @NotNull Iterable<ArtifactFileData> listObjects(@Nullable @Nullable String subpath)
listObjects
in interface ArtifactLinkDataProvider
@Nullable public @Nullable Date lastModified()
lastModified
in interface ArtifactLinkDataProvider
public long getSize()
getSize
in interface ArtifactLinkDataProvider
public boolean exists()
exists
in interface ArtifactLinkDataProvider
public boolean exists(Iterable<String> pathComponents)
exists
in interface ArtifactLinkDataProvider
public static ArtifactLinkDataProvider decorate(ArtifactLinkDataProvider artifactLinkDataProvider)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.