Tighten up visibility as the user should use Channel.new*Future
This commit is contained in:
parent
1f9d165583
commit
94dc09c33d
@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* A skeletal {@link ChannelFuture} implementation which represents a
|
||||
* {@link ChannelFuture} which has been completed already.
|
||||
*/
|
||||
public abstract class CompleteChannelFuture implements ChannelFuture {
|
||||
abstract class CompleteChannelFuture implements ChannelFuture {
|
||||
|
||||
private final Channel channel;
|
||||
|
||||
|
@ -15,7 +15,6 @@
|
||||
*/
|
||||
package io.netty.channel;
|
||||
|
||||
import java.nio.channels.Channels;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
@ -25,7 +24,7 @@ import java.util.concurrent.TimeoutException;
|
||||
* recommended to use {@link Channel#newFailedFuture(Throwable)}
|
||||
* instead of calling the constructor of this future.
|
||||
*/
|
||||
public class FailedChannelFuture extends CompleteChannelFuture {
|
||||
class FailedChannelFuture extends CompleteChannelFuture {
|
||||
|
||||
private final Throwable cause;
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.concurrent.TimeoutException;
|
||||
* recommended to use {@link Channel#newSucceededFuture()} instead of
|
||||
* calling the constructor of this future.
|
||||
*/
|
||||
public class SucceededChannelFuture extends CompleteChannelFuture {
|
||||
class SucceededChannelFuture extends CompleteChannelFuture {
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
|
Loading…
Reference in New Issue
Block a user