Removing useless inner interface from Adapters
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 11 Dec 2016 18:08:01 +0000 (19:08 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 11 Dec 2016 18:08:01 +0000 (19:08 +0100)
SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/CompletableFutureAdapter.java
SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/RxJavaAdapter.java

index a9b4337..c451bfb 100644 (file)
@@ -12,13 +12,7 @@ public class CompletableFutureAdapter {
        // With no value, we depend on the Tomcat/Jboss/Jetty/etc timeout value for asynchronous requests.
        // Spring will answer after 60 secs with an empty response (by default) and HTTP 503 status (by default) when timeout.
        private static final long ASYNC_TIMEOUT = 60000;  /* milliseconds */
-
        
-       @FunctionalInterface
-       public interface DeferredCall<T> {
-               
-               public T doCall();
-       }
        
        public static final <T> DeferredResult<T> deferredAdapter(CompletableFuture<T> completableFuture) {
 
index 8d7446f..04ee276 100644 (file)
@@ -15,12 +15,6 @@ public class RxJavaAdapter {
        private static final long ASYNC_TIMEOUT = 60000;  /* milliseconds */
 
        
-       @FunctionalInterface
-       public interface DeferredCall<T> {
-               
-               public T doCall();
-       }
-       
        public static final <T> DeferredResult<T> deferredAdapter(Observable<T> observable) {
 
        DeferredResult<T> deferredResult = new DeferredResult<>(ASYNC_TIMEOUT);