public class ArtifactHandlerPublishingResultImpl extends Object implements ArtifactHandlerPublishingResult
Modifier and Type | Method and Description |
---|---|
static ArtifactHandlerPublishingResult |
failure() |
static ArtifactHandlerPublishingResult |
fromSuccessFlag(boolean isSuccessful) |
static ArtifactHandlerPublishingResult |
fromSuccessFlag(boolean isSuccessful,
Supplier<Pair<Integer,Long>> uploadStatsSupplier) |
ArchiverType |
getArchiverType() |
String |
getArtifactHandlerKey() |
Long |
getTotalUploadedSize() |
boolean |
isSuccessful() |
void |
setArchiverType(ArchiverType archiverType) |
void |
setArtifactHandlerKey(String completeKey) |
static ArtifactHandlerPublishingResult |
success(Integer totalUploadedCnt,
Long totalUploadedSize) |
public boolean isSuccessful()
isSuccessful
in interface ArtifactHandlerPublishingResult
public Long getTotalUploadedSize()
getTotalUploadedSize
in interface ArtifactHandlerPublishingResult
public void setArtifactHandlerKey(@NotNull String completeKey)
setArtifactHandlerKey
in interface ArtifactHandlerPublishingResult
@NotNull public String getArtifactHandlerKey()
getArtifactHandlerKey
in interface ArtifactHandlerPublishingResult
@NotNull public ArchiverType getArchiverType()
getArchiverType
in interface ArtifactHandlerPublishingResult
public void setArchiverType(@NotNull ArchiverType archiverType)
setArchiverType
in interface ArtifactHandlerPublishingResult
public static ArtifactHandlerPublishingResult failure()
public static ArtifactHandlerPublishingResult success(@Nullable Integer totalUploadedCnt, @Nullable Long totalUploadedSize)
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful)
public static ArtifactHandlerPublishingResult fromSuccessFlag(boolean isSuccessful, @NotNull Supplier<Pair<Integer,Long>> uploadStatsSupplier)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.