Package akka.http.impl.engine.client
Class PoolId
- java.lang.Object
-
- akka.http.impl.engine.client.PoolId
-
public final class PoolId extends java.lang.Object
Represents a pool by its target endpoint and settings and its designated usage (shared or unique).A
PoolId
is represented by itsHostConnectionPoolSetup
and itsPoolId.PoolUsage
. If the later isSharedPool
, it means that a shared pool must be used for this particularHostConnectionPoolSetup
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PoolId.PoolUsage
static class
PoolId.SharedPool$
static class
PoolId.UniquePool
static class
PoolId.UniquePool$
-
Constructor Summary
Constructors Constructor Description PoolId(HostConnectionPoolSetup hcps, PoolId.PoolUsage usage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object that)
int
hashCode()
HostConnectionPoolSetup
hcps()
static PoolId.UniquePool
newUniquePool()
java.lang.String
toString()
PoolId.PoolUsage
usage()
-
-
-
Constructor Detail
-
PoolId
public PoolId(HostConnectionPoolSetup hcps, PoolId.PoolUsage usage)
-
-
Method Detail
-
newUniquePool
public static PoolId.UniquePool newUniquePool()
-
hcps
public HostConnectionPoolSetup hcps()
-
usage
public PoolId.PoolUsage usage()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-