Class ConnectionPool
- java.lang.Object
-
- com.azure.spring.cloud.config.resource.ConnectionPool
-
public final class ConnectionPool extends Object
Container for connection string of stores
-
-
Constructor Summary
Constructors Constructor Description ConnectionPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionget(String endpoint)Gets Connection used to connect to the given endpoint.Map<String,Connection>getAll()Returns all Connections to App Configurationvoidput(String endpoint, Connection connectionString)Adds new connection to the Connection Poolvoidput(String endpoint, String connectionString)Adds new connection to the Connection Pool
-
-
-
Method Detail
-
put
public void put(String endpoint, Connection connectionString)
Adds new connection to the Connection Pool- Parameters:
endpoint- App Configuration Store EndpointconnectionString- Connection String to App Configuration
-
put
public void put(String endpoint, String connectionString)
Adds new connection to the Connection Pool- Parameters:
endpoint- App Configuration Store EndpointconnectionString- Connection String to App Configuration
-
get
@Nullable public Connection get(String endpoint)
Gets Connection used to connect to the given endpoint.- Parameters:
endpoint- App Configuration Endpoint- Returns:
- Connection to App Configuration
-
getAll
public Map<String,Connection> getAll()
Returns all Connections to App Configuration- Returns:
- Map<String, Connection>
-
-