net.gleamynode.netty.channel
Class DefaultChannelFuture

java.lang.Object
  extended by net.gleamynode.netty.channel.DefaultChannelFuture
All Implemented Interfaces:
ChannelFuture

public class DefaultChannelFuture
extends Object
implements ChannelFuture


Constructor Summary
DefaultChannelFuture(Channel channel, boolean cancellable)
           
 
Method Summary
 void addListener(ChannelFutureListener listener)
           
 ChannelFuture await()
           
 boolean await(long timeoutMillis)
           
 boolean await(long timeout, TimeUnit unit)
           
 ChannelFuture awaitUninterruptibly()
           
 boolean awaitUninterruptibly(long timeoutMillis)
           
 boolean awaitUninterruptibly(long timeout, TimeUnit unit)
           
 boolean cancel()
           
 Throwable getCause()
           
 Channel getChannel()
           
 boolean isCancelled()
           
 boolean isDone()
           
 boolean isSuccess()
           
 void removeListener(ChannelFutureListener listener)
           
 void setFailure(Throwable cause)
           
 void setSuccess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChannelFuture

public DefaultChannelFuture(Channel channel,
                            boolean cancellable)
Method Detail

getChannel

public Channel getChannel()
Specified by:
getChannel in interface ChannelFuture

isDone

public boolean isDone()
Specified by:
isDone in interface ChannelFuture

isSuccess

public boolean isSuccess()
Specified by:
isSuccess in interface ChannelFuture

getCause

public Throwable getCause()
Specified by:
getCause in interface ChannelFuture

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface ChannelFuture

addListener

public void addListener(ChannelFutureListener listener)
Specified by:
addListener in interface ChannelFuture

removeListener

public void removeListener(ChannelFutureListener listener)
Specified by:
removeListener in interface ChannelFuture

await

public ChannelFuture await()
                    throws InterruptedException
Specified by:
await in interface ChannelFuture
Throws:
InterruptedException

await

public boolean await(long timeout,
                     TimeUnit unit)
              throws InterruptedException
Specified by:
await in interface ChannelFuture
Throws:
InterruptedException

await

public boolean await(long timeoutMillis)
              throws InterruptedException
Specified by:
await in interface ChannelFuture
Throws:
InterruptedException

awaitUninterruptibly

public ChannelFuture awaitUninterruptibly()
Specified by:
awaitUninterruptibly in interface ChannelFuture

awaitUninterruptibly

public boolean awaitUninterruptibly(long timeout,
                                    TimeUnit unit)
Specified by:
awaitUninterruptibly in interface ChannelFuture

awaitUninterruptibly

public boolean awaitUninterruptibly(long timeoutMillis)
Specified by:
awaitUninterruptibly in interface ChannelFuture

setSuccess

public void setSuccess()
Specified by:
setSuccess in interface ChannelFuture

setFailure

public void setFailure(Throwable cause)
Specified by:
setFailure in interface ChannelFuture

cancel

public boolean cancel()
Specified by:
cancel in interface ChannelFuture


Copyright © 2008-Present Trustin Heuiseung Lee. All Rights Reserved.