public class DefaultConnectionListener extends Object implements IOProcessor
Constructor and Description |
---|
DefaultConnectionListener(int port,
HttpConnectionManager connmanager,
ConnectionListenerFailureHandler failureHandler,
org.apache.http.params.HttpParams params)
Use this constructor to provide a custom ConnectionListenerFailureHandler, e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
awaitSocketOpen() |
void |
close() |
void |
destroy() |
int |
getPort() |
boolean |
isDestroyed() |
void |
run() |
public DefaultConnectionListener(int port, HttpConnectionManager connmanager, ConnectionListenerFailureHandler failureHandler, org.apache.http.params.HttpParams params) throws IOException
IOException
public void awaitSocketOpen() throws InterruptedException
InterruptedException
public int getPort()
public void close() throws IOException
close
in interface IOProcessor
IOException
public void destroy()
destroy
in interface IOProcessor
public boolean isDestroyed()
isDestroyed
in interface IOProcessor
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.