Package org.apache.http.impl.nio.client
Class CloseableHttpAsyncClientBase
- java.lang.Object
-
- org.apache.http.impl.nio.client.CloseableHttpAsyncClient
-
- org.apache.http.impl.nio.client.CloseableHttpPipeliningClient
-
- org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,HttpAsyncClient
,HttpPipeliningClient
- Direct Known Subclasses:
InternalHttpAsyncClient
,MinimalHttpAsyncClient
abstract class CloseableHttpAsyncClientBase extends CloseableHttpPipeliningClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CloseableHttpAsyncClientBase.Status
-
Field Summary
Fields Modifier and Type Field Description private NHttpClientConnectionManager
connmgr
private org.apache.commons.logging.Log
log
private java.lang.Thread
reactorThread
private java.util.concurrent.atomic.AtomicReference<CloseableHttpAsyncClientBase.Status>
status
-
Constructor Summary
Constructors Constructor Description CloseableHttpAsyncClientBase(NHttpClientConnectionManager connmgr, java.util.concurrent.ThreadFactory threadFactory, org.apache.http.nio.NHttpClientEventHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
ensureRunning()
boolean
isRunning()
void
start()
-
Methods inherited from class org.apache.http.impl.nio.client.CloseableHttpPipeliningClient
execute, execute, execute
-
Methods inherited from class org.apache.http.impl.nio.client.CloseableHttpAsyncClient
execute, execute, execute, execute, execute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.http.nio.client.HttpAsyncClient
execute, execute, execute, execute, execute, execute
-
Methods inherited from interface org.apache.http.nio.client.HttpPipeliningClient
execute
-
-
-
-
Field Detail
-
log
private final org.apache.commons.logging.Log log
-
connmgr
private final NHttpClientConnectionManager connmgr
-
reactorThread
private final java.lang.Thread reactorThread
-
status
private final java.util.concurrent.atomic.AtomicReference<CloseableHttpAsyncClientBase.Status> status
-
-
Constructor Detail
-
CloseableHttpAsyncClientBase
public CloseableHttpAsyncClientBase(NHttpClientConnectionManager connmgr, java.util.concurrent.ThreadFactory threadFactory, org.apache.http.nio.NHttpClientEventHandler handler)
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in classCloseableHttpAsyncClient
-
ensureRunning
protected void ensureRunning()
-
close
public void close()
-
isRunning
public boolean isRunning()
- Specified by:
isRunning
in classCloseableHttpAsyncClient
-
-