org.zodiac.sdk.simplenetty.concurrent.DefaultFuture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
package org.zodiac.sdk.simplenetty.concurrent;
import java.util.List;
import java.util.Map;
import org.zodiac.sdk.simplenetty.core.EventExecutor;
import org.zodiac.sdk.simplenetty.listener.Listener;
public class DefaultFuture extends AbstractFuture {
public DefaultFuture(EventExecutor executor, boolean isCancellable) {
super(executor, isCancellable);
}
@Override
public Future addListener(Listener listener, int op) {
throw new UnsupportedOperationException("listener should be ChannelFuture");
}
@Override
public Future addListeners(Map, Integer> listeners) {
throw new UnsupportedOperationException("listener should be ChannelFuture");
}
@Override
public Future removeListener(Listener listener) {
throw new UnsupportedOperationException("listener should be ChannelFuture");
}
@Override
public Future removeListeners(List> listeners) {
throw new UnsupportedOperationException("listener should be ChannelFuture");
}
}