org.apache.http.impl.nio.reactor
Class ListenerEndpointImpl
java.lang.Object
org.apache.http.impl.nio.reactor.ListenerEndpointImpl
- All Implemented Interfaces:
- ListenerEndpoint
public class ListenerEndpointImpl
- extends java.lang.Object
- implements ListenerEndpoint
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListenerEndpointImpl
public ListenerEndpointImpl(java.net.SocketAddress address,
ListenerEndpointClosedCallback callback)
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.