Class BatchFileEntry


  • public class BatchFileEntry
    extends Object
    Represents a batch file backed by the TransientStore.

    The file can be chunked or not. If it is chunked it references its chunks as TransientStore entry keys.

    Since:
    7.4
    See Also:
    Batch
    • Constructor Detail

      • BatchFileEntry

        public BatchFileEntry​(TransientStore transientStore,
                              String key,
                              Blob blob)
        Returns a file entry that holds the given blob, not chunked.
      • BatchFileEntry

        public BatchFileEntry​(TransientStore transientStore,
                              String key,
                              int chunkCount,
                              String fileName,
                              String mimeType,
                              long fileSize)
        Returns a file entry that references the file chunks.
      • BatchFileEntry

        protected BatchFileEntry​(TransientStore transientStore,
                                 String key,
                                 boolean chunked)
    • Method Detail

      • getKey

        public String getKey()
      • isChunked

        public boolean isChunked()
      • getFileName

        public String getFileName()
      • getMimeType

        public String getMimeType()
      • getFileSize

        public long getFileSize()
      • getChunkCount

        public int getChunkCount()
      • getOrderedChunkIndexes

        public List<Integer> getOrderedChunkIndexes()
      • isChunksCompleted

        public boolean isChunksCompleted()
      • getBlob

        public Blob getBlob()
      • addChunk

        public String addChunk​(int index,
                               Blob blob)
      • beforeRemove

        public void beforeRemove()