public interface PathPolicy
Contract:
- The list of paths returned by filter may be ordered by preference (most preferred first).
- The filter method must not modify the input list of paths (TBD).
- The filter method must not keep a reference to the returned list. The returned list may be
modified by the caller.
- The filter method must not return a list containing paths with null metadata.
| Modifier and Type | Interface and Description |
|---|---|
static class |
PathPolicy.First |
static class |
PathPolicy.IsdAllow |
static class |
PathPolicy.IsdDisallow |
static class |
PathPolicy.MaxBandwith |
static class |
PathPolicy.MinHopCount |
static class |
PathPolicy.MinLatency |
| Modifier and Type | Field and Description |
|---|---|
static PathPolicy |
DEFAULT |
static PathPolicy |
FIRST |
static PathPolicy |
MAX_BANDWIDTH |
static PathPolicy |
MIN_HOPS |
static PathPolicy |
MIN_LATENCY |
| Modifier and Type | Method and Description |
|---|---|
List<Path> |
filter(List<Path> paths) |
static final PathPolicy FIRST
static final PathPolicy MAX_BANDWIDTH
static final PathPolicy MIN_LATENCY
static final PathPolicy MIN_HOPS
static final PathPolicy DEFAULT
List<Path> filter(List<Path> paths)
paths - A list of candidate pathsNoSuchElementException - if no matching path could be found.Copyright © 2025. All rights reserved.