diff --git a/src/main/java/com/navercorp/arcus/spring/ArcusTemplate.java b/src/main/java/com/navercorp/arcus/spring/ArcusTemplate.java index 7078652..0acdfaf 100644 --- a/src/main/java/com/navercorp/arcus/spring/ArcusTemplate.java +++ b/src/main/java/com/navercorp/arcus/spring/ArcusTemplate.java @@ -17,7 +17,6 @@ package com.navercorp.arcus.spring; -import com.navercorp.arcus.spring.callback.ArcusCallBack; import net.spy.memcached.ArcusClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -38,7 +37,9 @@ public ArcusTemplate(ArcusClient arcusClient) { this.arcusClient = arcusClient; } - public T execute(final ArcusCallBack methodCall) { + // There is NO way to avoid deprecated warnings when import deprecated classes. + // Use full class path to avoid them. + public T execute(final com.navercorp.arcus.spring.callback.ArcusCallBack methodCall) { return executeAndHandleException(methodCall, new FutureGetter() { public T get(Future future) throws InterruptedException, ExecutionException { @@ -47,7 +48,8 @@ public T get(Future future) throws InterruptedException, }); } - public T execute(final ArcusCallBack methodCall, final long timeout, + public T execute(final com.navercorp.arcus.spring.callback.ArcusCallBack methodCall, + final long timeout, final TimeUnit unit) { return executeAndHandleException(methodCall, new FutureGetter() { public T get(Future future) throws InterruptedException, @@ -57,7 +59,7 @@ public T get(Future future) throws InterruptedException, }); } - private T executeAndHandleException(final ArcusCallBack methodCall, + private T executeAndHandleException(final com.navercorp.arcus.spring.callback.ArcusCallBack methodCall, FutureGetter futureGetter) { T arcusResponse = null; Future link = null;