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) |
String |
getRootUrl() |
long |
getSize() |
Date |
lastModified() |
Iterable<ArtifactFileData> |
listObjects(String subpath) |
public CachingArtifactLinkDataProviderDecorator(ArtifactLinkDataProvider artifactLinkDataProvider)
@NotNull public String getRootUrl()
getRootUrl
in interface ArtifactLinkDataProvider
@NotNull public Iterable<ArtifactFileData> listObjects(@Nullable String subpath)
listObjects
in interface ArtifactLinkDataProvider
@Nullable public 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 © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.