@@ -2,29 +2,23 @@ package com.saveourtool.save.storage.key
22
33import com.saveourtool.save.spring.entity.BaseEntity
44import com.saveourtool.save.spring.repository.BaseEntityRepository
5+ import com.saveourtool.save.utils.BlockingBridge
56import com.saveourtool.save.utils.orNotFound
67
78import org.springframework.data.repository.findByIdOrNull
89import org.springframework.transaction.annotation.Transactional
9- import reactor.core.scheduler.Scheduler
10- import reactor.core.scheduler.Schedulers
11-
12- import kotlinx.coroutines.CoroutineDispatcher
13- import kotlinx.coroutines.Dispatchers
1410
1511/* *
1612 * Implementation of [S3KeyManager] which stores keys in database
1713 *
1814 * @param prefix a common prefix for all keys in S3 storage for this storage
1915 * @property repository repository for [E]
20- * @property ioScheduler
21- * @property ioDispatcher
16+ * @property blockingBridge
2217 */
2318abstract class AbstractS3KeyDatabaseManager <K : Any , E : BaseEntity , R : BaseEntityRepository <E >>(
2419 prefix : String ,
2520 protected val repository : R ,
26- val ioScheduler : Scheduler = Schedulers .boundedElastic(),
27- val ioDispatcher : CoroutineDispatcher = Dispatchers .IO ,
21+ val blockingBridge : BlockingBridge ,
2822) : S3KeyManager<K> {
2923 /* *
3024 * [S3KeyManager] with [Long] as key (it's [ID][com.saveourtool.save.spring.entity.BaseEntity.requiredId])
0 commit comments