org.apache.http.impl.nio.reactor
Class ListenerEndpointImpl

java.lang.Object
  extended by org.apache.http.impl.nio.reactor.ListenerEndpointImpl
All Implemented Interfaces:
ListenerEndpoint

public class ListenerEndpointImpl
extends java.lang.Object
implements ListenerEndpoint


Constructor Summary
ListenerEndpointImpl(java.net.SocketAddress address, ListenerEndpointClosedCallback callback)
           
 
Method Summary
 void cancel()
           
 void close()
           
 void completed(java.net.SocketAddress address)
           
 void failed(java.io.IOException exception)
           
 java.net.SocketAddress getAddress()
           
 java.io.IOException getException()
           
 boolean isClosed()
           
 boolean isCompleted()
           
protected  void setKey(java.nio.channels.SelectionKey key)
           
 void waitFor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerEndpointImpl

public ListenerEndpointImpl(java.net.SocketAddress address,
                            ListenerEndpointClosedCallback callback)
Method Detail

getAddress

public java.net.SocketAddress getAddress()
Specified by:
getAddress in interface ListenerEndpoint

isCompleted

public boolean isCompleted()

getException

public java.io.IOException getException()
Specified by:
getException in interface ListenerEndpoint

waitFor

public void waitFor()
             throws java.lang.InterruptedException
Specified by:
waitFor in interface ListenerEndpoint
Throws:
java.lang.InterruptedException

completed

public void completed(java.net.SocketAddress address)

failed

public void failed(java.io.IOException exception)

cancel

public void cancel()

setKey

protected void setKey(java.nio.channels.SelectionKey key)

isClosed

public boolean isClosed()
Specified by:
isClosed in interface ListenerEndpoint

close

public void close()
Specified by:
close in interface ListenerEndpoint


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.