File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import com .google .common .cache .Cache ;
22
22
import com .google .common .cache .CacheBuilder ;
23
- import io . grpc . netty . shaded . io . netty . util .concurrent .DefaultThreadFactory ;
23
+ import com . google . common . util .concurrent .ThreadFactoryBuilder ;
24
24
import java .util .concurrent .Executors ;
25
25
import java .util .concurrent .ScheduledExecutorService ;
26
26
import java .util .concurrent .TimeUnit ;
@@ -49,7 +49,7 @@ public OffsetsCache() {
49
49
.build ();
50
50
cacheEvictionExecutor =
51
51
Executors .newSingleThreadScheduledExecutor (
52
- new DefaultThreadFactory ( "jcloud-offsets-cache-eviction" ));
52
+ new ThreadFactoryBuilder (). setNameFormat ( "jcloud-offsets-cache-eviction" ). build ( ));
53
53
int period = Math .max (CACHE_TTL_SECONDS / 2 , 1 );
54
54
cacheEvictionExecutor .scheduleAtFixedRate (() -> {
55
55
entryOffsetsCache .cleanUp ();
You can’t perform that action at this time.
0 commit comments