ConnPoolByRoute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class is obsoleted in this android platform
Manages reusable connections by route and enforces route-specific connection limits.
[Android.Runtime.Register("org/apache/http/impl/conn/tsccm/ConnPoolByRoute", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public class ConnPoolByRoute : Org.Apache.Http.Impl.Conn.Tsccm.AbstractConnPool
[<Android.Runtime.Register("org/apache/http/impl/conn/tsccm/ConnPoolByRoute", DoNotGenerateAcw=true)>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type ConnPoolByRoute = class
inherit AbstractConnPool
- Inheritance
- Attributes
Remarks
Android platform documentation
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
| Name | Description |
|---|---|
| ConnPoolByRoute(IClientConnectionOperator, IHttpParams) |
Creates a connection pool managed by route. |
| ConnPoolByRoute(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| FreeConnections |
Gets or sets the queue of pool entries available for reuse. |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| IdleConnHandler |
Gets or sets the handler that tracks idle connections and their expiry times. (Inherited from AbstractConnPool) |
| IsShutDown |
Gets or sets the flag that records whether this pool is shut down. (Inherited from AbstractConnPool) |
| IssuedConnections |
Gets or sets the weak references used to track issued pool entries. (Inherited from AbstractConnPool) |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState |
Gets the state flags last assigned by the runtime. (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI metadata used to access members of this Java binding. |
| MaxTotalConnections |
Gets or sets the total connection limit used by this pool. |
| NumConnections |
Gets or sets the total connection count tracked by this pool. (Inherited from AbstractConnPool) |
| Operator |
Gets or sets the connection operator used to create pool entries. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| PoolLock |
Gets or sets the lock used to protect the pool's internal state. (Inherited from AbstractConnPool) |
| RefQueue |
Gets or sets the reference queue used to detect collected pool entries. (Inherited from AbstractConnPool) |
| RouteToPool |
Gets or sets the map from HTTP routes to their connection pools. |
| ThresholdClass |
Gets the Java class used for virtual method dispatch. |
| ThresholdType |
Gets the managed type that declares this Java binding. |
| WaitingThreads |
Gets or sets the global queue of threads waiting for connections. |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| CloseConnection(IOperatedClientConnection) |
Closes the supplied connection and logs any I/O error. (Inherited from AbstractConnPool) |
| CloseExpiredConnections() |
Closes tracked connections whose validity period has expired. (Inherited from AbstractConnPool) |
| CloseIdleConnections(Int64, TimeUnit) |
Closes connections that have been idle for at least the specified duration. (Inherited from AbstractConnPool) |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
Delegates construction of this peer to the runtime's value manager. (Inherited from JavaObject) |
| CreateEntry(RouteSpecificPool, IClientConnectionOperator) |
Creates an entry for a route and records it as issued. |
| CreateFreeConnQueue() |
Creates the queue used to hold available pool entries. |
| CreateRouteToPoolMap() |
Creates the map used to find a pool by its HTTP route. |
| CreateWaitingThreadQueue() |
Creates the queue used to track threads waiting for a connection. |
| DeleteClosedConnections() |
Removes entries whose pooled connections are closed. |
| DeleteEntry(BasicPoolEntry) |
Closes an entry's connection and updates pool tracking; the caller must first remove it from the free queue. |
| DeleteLeastUsedEntry() |
Removes and deletes the entry at the head of the free connection queue. |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() |
Asks the value manager to dispose this peer unless its mapping retains this same managed instance. (Inherited from JavaObject) |
| EnableConnectionGC() |
Starts a background worker that detects collected pool entries. (Inherited from AbstractConnPool) |
| Equals(Object) |
Tests whether another managed peer refers to the same Java object. (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| FreeEntry(BasicPoolEntry, Boolean, Int64, TimeUnit) |
Returns a connection entry to its route-specific pool. |
| GetConnectionsInPool(HttpRoute) |
Gets the number of connections in the pool for a route. |
| GetEntry(HttpRoute, Object, Int64, TimeUnit) |
Acquires an entry with a connection for a route within the specified timeout. (Inherited from AbstractConnPool) |
| GetEntryBlocking(HttpRoute, Object, Int64, TimeUnit, WaitingThreadAborter) |
Obtains an entry for a route, waiting for capacity when necessary. |
| GetFreeEntry(RouteSpecificPool, Object) |
Allocates an available entry for a route, discarding entries whose validity has expired. |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetRoutePool(HttpRoute, Boolean) |
Finds the pool for a route and optionally creates it. |
| HandleLostEntry(HttpRoute) |
Decrements connection tracking for a lost entry and notifies a waiting thread. |
| HandleReference(Reference) |
Removes a collected entry's issued reference and invokes route-specific cleanup. (Inherited from AbstractConnPool) |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| NewRouteSpecificPool(HttpRoute) |
Creates a route-specific pool using the configured limit for that route. |
| NewWaitingThread(ICondition, RouteSpecificPool) |
Creates a record that associates a waiting condition with a route-specific pool. |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| NotifyWaitingThread(RouteSpecificPool) |
Wakes a route-specific waiter if one exists, otherwise a waiter from the global queue. |
| RequestPoolEntry(HttpRoute, Object) |
Creates an abortable request for an entry in a route-specific pool. |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
Stores a reference value in the control block without creating a JNI reference copy. (Inherited from JavaObject) |
| Shutdown() |
Shuts down this pool and its associated resources. (Inherited from AbstractConnPool) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() |
Marks this peer as disposed and calls |
| IJavaPeerable.Finalized() |
Marks this peer as disposed and calls |
| IJavaPeerable.JniObjectReferenceControlBlock |
Gets the native control-block pointer used by this peer. (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Stores the identity hash code supplied by the runtime. (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Replaces the stored managed peer state flags. (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Updates the peer reference and releases a disposed peer's control block when the reference is invalid. (Inherited from JavaObject) |
| IJavaPeerable.UnregisterFromRuntime() |
Removes this instance from the runtime's Java object lookup. (Inherited from AbstractConnPool) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |