This commit is contained in:
Andy Wilkinson
2018-05-09 08:44:15 +01:00
parent ba16f135a6
commit c826310fd1
4 changed files with 27 additions and 26 deletions

View File

@@ -16,7 +16,6 @@
package org.springframework.boot.actuate.metrics.cache;
import com.hazelcast.core.IMap;
import com.hazelcast.spring.cache.HazelcastCache;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.MeterBinder;
@@ -32,10 +31,8 @@ public class HazelcastCacheMeterBinderProvider
implements CacheMeterBinderProvider<HazelcastCache> {
@Override
@SuppressWarnings("unchecked")
public MeterBinder getMeterBinder(HazelcastCache cache, Iterable<Tag> tags) {
return new HazelcastCacheMetrics((IMap<Object, Object>) cache.getNativeCache(),
tags);
return new HazelcastCacheMetrics(cache.getNativeCache(), tags);
}
}