Java tutorial
/* * Copyright 2011-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.lambdaworks.redis.protocol; import io.netty.channel.Channel; import io.netty.channel.ChannelFuture; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.GenericFutureListener; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; /** * @author Mark Paluch */ class EmptyFuture implements ChannelFuture { @Override public Channel channel() { return null; } @Override public ChannelFuture addListener(GenericFutureListener<? extends Future<? super Void>> listener) { return null; } @Override public ChannelFuture addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) { return null; } @Override public ChannelFuture removeListener(GenericFutureListener<? extends Future<? super Void>> listener) { return null; } @Override public ChannelFuture removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) { return null; } @Override public ChannelFuture sync() throws InterruptedException { return null; } @Override public ChannelFuture syncUninterruptibly() { return null; } @Override public ChannelFuture await() throws InterruptedException { return null; } @Override public ChannelFuture awaitUninterruptibly() { return null; } @Override public boolean isVoid() { return false; } @Override public boolean isSuccess() { return false; } @Override public boolean isCancellable() { return false; } @Override public Throwable cause() { return null; } @Override public boolean await(long timeout, TimeUnit unit) throws InterruptedException { return false; } @Override public boolean await(long timeoutMillis) throws InterruptedException { return false; } @Override public boolean awaitUninterruptibly(long timeout, TimeUnit unit) { return false; } @Override public boolean awaitUninterruptibly(long timeoutMillis) { return false; } @Override public Void getNow() { return null; } @Override public boolean cancel(boolean mayInterruptIfRunning) { return false; } @Override public boolean isCancelled() { return false; } @Override public boolean isDone() { return false; } @Override public Void get() throws InterruptedException, ExecutionException { return null; } @Override public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return null; } }