Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Alfonsi committed Oct 17, 2023
1 parent 8f65db4 commit 7155afd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import org.ehcache.config.builders.PooledExecutionServiceConfigurationBuilder;
import org.ehcache.config.builders.ResourcePoolsBuilder;
import org.ehcache.config.units.MemoryUnit;
import org.ehcache.event.EventFiring;
import org.ehcache.event.EventOrdering;
import org.ehcache.event.EventType;
import org.ehcache.impl.config.executor.PooledExecutionServiceConfiguration;
import org.opensearch.common.ExponentiallyWeightedMovingAverage;
Expand All @@ -29,7 +27,6 @@

import java.io.IOException;
import java.util.Collections;
import java.util.EnumSet;

public class EhcacheDiskCachingTier implements DiskCachingTier<IndicesRequestCache.Key, BytesReference>, RemovalListener<IndicesRequestCache.Key, BytesReference> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class TieredCacheSpilloverStrategyHandler<K extends Writeable, V> implements TieredCacheHandler<K, V>, RemovalListener<K, V> {

private final OnHeapCachingTier<K, V> onHeapCachingTier;
private final DiskCachingTier<K, V> diskCachingTier; // changed for testing
private final DiskCachingTier<K, V> diskCachingTier;
private final TieredCacheEventListener<K, V> tieredCacheEventListener;

/**
Expand All @@ -37,7 +37,6 @@ public class TieredCacheSpilloverStrategyHandler<K extends Writeable, V> impleme
private TieredCacheSpilloverStrategyHandler(
OnHeapCachingTier<K, V> onHeapCachingTier,
DiskCachingTier<K, V> diskCachingTier,
// changed to EhcacheDiskCachingTier from CachingTier, to enable close() method, which is needed for tests. Implement close() in CachingTier or DiskCachingTier?
TieredCacheEventListener<K, V> tieredCacheEventListener
) {
this.onHeapCachingTier = Objects.requireNonNull(onHeapCachingTier);
Expand Down

0 comments on commit 7155afd

Please sign in to comment.