Class MongoDBTransientStore

  • All Implemented Interfaces:
    TransientStore, TransientStoreProvider

    public class MongoDBTransientStore
    extends Object
    implements TransientStoreProvider
    Transient Store optimized for MongoDB, using a blob provider for binaries. It can replace the KeyValueBlobTransientStore implementation, it uses the same configuration.

    A MongoDB collection is created per store, the name is prefixed by "transient.". If not provided the blob provider is created using a default configuration with "transient_" prefix that gives the required transient property.

    The storage format is the following:

     { "_id" : $KEY, "completed" : false, "ttl" : ISODate("2022-11-17T12:10:16.568Z"),
       "params" : { "chunked" : "false" } },
       "blobs" : [ { "key" : ..., "mimetype" : ..., "encoding" : ..., "filename" : ..., "length" : NumberLong(131984), "digest" : ... } ],
       "blobSize" : NumberLong(131984), "blobCount" : 1 }
     
    The total size of the storage is computed with an aggregation on the blobSize property.
    Since:
    2021.30