net.gleamynode.netty.channel
Class CompleteChannelFuture

java.lang.Object
  extended by net.gleamynode.netty.channel.CompleteChannelFuture
All Implemented Interfaces:
ChannelFuture
Direct Known Subclasses:
FailedChannelFuture, SucceededChannelFuture

public abstract class CompleteChannelFuture
extends Object
implements ChannelFuture


Constructor Summary
protected CompleteChannelFuture(Channel channel)
           
 
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()
           
 Channel getChannel()
           
 boolean isCancelled()
           
 boolean isDone()
           
 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
 
Methods inherited from interface net.gleamynode.netty.channel.ChannelFuture
getCause, isSuccess
 

Constructor Detail

CompleteChannelFuture

protected CompleteChannelFuture(Channel channel)
Method Detail

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

getChannel

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

isDone

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

setFailure

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

setSuccess

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

cancel

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

isCancelled

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


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