Basic implementation of a connection pool entry. More...
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
Public Member Functions | |
BasicPoolEntry (ClientConnectionOperator op, HttpRoute route, ReferenceQueue< Object > queue) | |
Creates a new pool entry. More... | |
Public Member Functions inherited from AbstractPoolEntry | |
Object | getState () |
Returns the state object associated with this pool entry. More... | |
void | setState (final Object state) |
Assigns a state object to this pool entry. More... | |
void | open (HttpRoute route, HttpContext context, HttpParams params) throws IOException |
Opens the underlying connection. More... | |
void | tunnelTarget (boolean secure, HttpParams params) throws IOException |
Tracks tunnelling of the connection to the target. More... | |
void | tunnelProxy (HttpHost next, boolean secure, HttpParams params) throws IOException |
Tracks tunnelling of the connection to a chained proxy. More... | |
void | layerProtocol (HttpContext context, HttpParams params) throws IOException |
Layers a protocol on top of an established tunnel. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractPoolEntry | |
AbstractPoolEntry (ClientConnectionOperator connOperator, HttpRoute route) | |
Creates a new pool entry. More... | |
void | shutdownEntry () |
Shuts down the entry. More... | |
Protected Attributes inherited from AbstractPoolEntry | |
final ClientConnectionOperator | connOperator |
The connection operator. More... | |
final OperatedClientConnection | connection |
The underlying connection being pooled or used. More... | |
volatile HttpRoute | route |
The route for which this entry gets allocated. More... | |
volatile Object | state |
Connection state object. | |
volatile RouteTracker | tracker |
The tracked route, or null before tracking starts. More... | |
BasicPoolEntry | ( | ClientConnectionOperator | op, |
HttpRoute | route, | ||
ReferenceQueue< Object > | queue | ||
) |
op | the connection operator |
route | the planned route for the connection |
queue | the reference queue for tracking GC of this entry, or null |