From e26f7fca360edae7bd8c7b65653637d801f2270d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 11 Nov 2015 12:23:11 -0800 Subject: [PATCH] cleanup cache interface --- .../main/java/io/druid/client/cache/Cache.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/server/src/main/java/io/druid/client/cache/Cache.java b/server/src/main/java/io/druid/client/cache/Cache.java index 4462b75aa61..70181b1ab58 100644 --- a/server/src/main/java/io/druid/client/cache/Cache.java +++ b/server/src/main/java/io/druid/client/cache/Cache.java @@ -30,8 +30,8 @@ import java.util.Map; */ public interface Cache { - public byte[] get(NamedKey key); - public void put(NamedKey key, byte[] value); + byte[] get(NamedKey key); + void put(NamedKey key, byte[] value); /** * Resulting map should not contain any null values (i.e. cache misses should not be included) @@ -39,21 +39,21 @@ public interface Cache * @param keys * @return */ - public Map getBulk(Iterable keys); + Map getBulk(Iterable keys); - public void close(String namespace); + void close(String namespace); - public CacheStats getStats(); + CacheStats getStats(); - public boolean isLocal(); + boolean isLocal(); /** * Custom metrics not covered by CacheStats may be emitted by this method. * @param emitter The service emitter to emit on. */ - public void doMonitor(ServiceEmitter emitter); + void doMonitor(ServiceEmitter emitter); - public class NamedKey + class NamedKey { final public String namespace; final public byte[] key;