|
| ReconnectLocationPool () |
| Create a default empty reconnect location pool.
|
|
| ReconnectLocationPool (ICollection< ReconnectLocation > locations) |
| Create a new reconnection location pool with the provided initial entries.
|
|
void | Shuffle () |
| Shuffle the elements in the pool producing a new randomized sequence of reconnection locations based on the original set.
|
|
ReconnectLocationPool | Add (ReconnectLocation location) |
| Adds the given location to this pool if it is not already contained within.
|
|
ReconnectLocationPool | AddAll (IEnumerable< ReconnectLocation > locations) |
| Adds the given enumeration of locations to this pool, filtering for duplicates.
|
|
ReconnectLocationPool | AddFirst (ReconnectLocation location) |
| Adds the given location to this pool at the front if it is not already contained within.
|
|
bool | Remove (ReconnectLocation location) |
| Removes the given location from the pool if present. If a value was removed this method return true otherwise it returns false.
|
|
ReconnectLocationPool | RemoveAll () |
| Removes all current entries from this pool leaving it in an empty state.
|
|
void | ReplaceAll (IEnumerable< ReconnectLocation > replacements) |
| Removes all currently configured ReconnectLocation values from the pool and replaces them with the new set given.
|
|
IList< ReconnectLocation > | ToList () |
| Returns a list that contains a copy of each element contained in this reconnect location pool which can be empty if the pool is empty.
|
|
override string | ToString () |
|
|
int | Count [get] |
| Gets the current number of entries that are stored in the pool.
|
|
bool | IsEmpty [get] |
| Checks if the reconnection location pool is empty or not.
|
|
ReconnectLocation? | Next [get] |
| Returns the next reconnection location from the pool and moves its place in the pool to the end of the list meaning it will eventually be returned again unless removed from the pool.
|
|
◆ ReconnectLocationPool()
Apache.Qpid.Proton.Client.Utilities.ReconnectLocationPool.ReconnectLocationPool |
( |
ICollection< ReconnectLocation > |
locations | ) |
|
|
inline |
Create a new reconnection location pool with the provided initial entries.
- Parameters
-
locations | The initial collection of entries to add to the pool |
◆ Add()
Adds the given location to this pool if it is not already contained within.
- Parameters
-
location | The new location to be added to the pool |
- Returns
- This reconnect locations pool
◆ AddAll()
Adds the given enumeration of locations to this pool, filtering for duplicates.
- Parameters
-
locations | The enumeration of locations to be added to the pool |
- Returns
- This reconnect locations pool
◆ AddFirst()
Adds the given location to this pool at the front if it is not already contained within.
- Parameters
-
location | The new location to be added to the pool |
- Returns
- This reconnect locations pool
◆ Remove()
bool Apache.Qpid.Proton.Client.Utilities.ReconnectLocationPool.Remove |
( |
ReconnectLocation |
location | ) |
|
|
inline |
Removes the given location from the pool if present. If a value was removed this method return true otherwise it returns false.
- Parameters
-
location | The location that should be removed from the pool |
- Returns
- true if a value was removed from the pool, and false otherwise
◆ RemoveAll()
Removes all current entries from this pool leaving it in an empty state.
- Parameters
-
location | The location to remove |
- Returns
- This reconnection location pool instance
◆ ReplaceAll()
void Apache.Qpid.Proton.Client.Utilities.ReconnectLocationPool.ReplaceAll |
( |
IEnumerable< ReconnectLocation > |
replacements | ) |
|
|
inline |
Removes all currently configured ReconnectLocation values from the pool and replaces them with the new set given.
- Parameters
-
replacements | The new set of ReconnectLocation values to serve from this pool |
◆ ToList()
IList< ReconnectLocation > Apache.Qpid.Proton.Client.Utilities.ReconnectLocationPool.ToList |
( |
| ) |
|
|
inline |
Returns a list that contains a copy of each element contained in this reconnect location pool which can be empty if the pool is empty.
- Returns
The documentation for this class was generated from the following file:
- src/Proton.Client/Client/Utilities/ReconnectLocationPool.cs