Class StreamAttachmentStoreStats.MutableStreamAttachmentStoreStats

java.lang.Object
com.atlassian.jira.issue.attachment.StreamAttachmentStoreStats.MutableStreamAttachmentStoreStats
All Implemented Interfaces:
StreamAttachmentStoreStats, com.atlassian.jira.util.stats.ManagedStats, Closeable, AutoCloseable
Enclosing interface:
StreamAttachmentStoreStats

public static class StreamAttachmentStoreStats.MutableStreamAttachmentStoreStats extends Object implements StreamAttachmentStoreStats
  • Constructor Details

    • MutableStreamAttachmentStoreStats

      public MutableStreamAttachmentStoreStats()
  • Method Details

    • getAttachmentData

      public void getAttachmentData(Duration ttfb, Duration executionTime, long contentLength, FileStoreAnalyticInfo fileStoreAnalyticInfo)
      Description copied from interface: StreamAttachmentStoreStats
      Records a measurement about a call to streamAttachmentContent in AttachmentManager.
      Specified by:
      getAttachmentData in interface StreamAttachmentStoreStats
      Parameters:
      ttfb - a Duration representing the time to first byte
      executionTime - a Duration representing the time elapsed while executing the method (this includes ttfb)
      contentLength - size of the attachment in bytes
      fileStoreAnalyticInfo - a FileStoreAnalyticInfo representing the current file store configuration for attachments
    • getStatsName

      public String getStatsName()
      Specified by:
      getStatsName in interface com.atlassian.jira.util.stats.ManagedStats