| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Logger | |
| private final long | |
| private final AltServicesRegistry. | |
| private final ReentrantLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv String | |
| public boolean | isActive(final AltServicesRegistry.
The alternate service
Returns true if the altServiceservice is known to this registry and the
service isn't past its max age. false otherwise.Returns: true if the |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public Stream | |
| public Stream | Returns: a stream ofAlternateService that are available for the
given origin and that support the given ALPNthe URI of the origin server origin, final String the ALPN of the alternate service alpn)A stream of |
| public Stream | |
| private Stream | Returns: a stream ofAlternateService that are available for the
given origin and whose ALPN satisfies the alpn predicate.the URI of the origin server origin, final Predicate<? super String> a predicate to select particular AltService(s) based on the alpn
of the alternate service alpnMatcher)A stream of |
| public void | |
| private void | |
| pack-priv Optional | Returns: AnOptional containing the registered AltService,
or Optional#empty() if the service was not registered.The alt service identity id,The origin origin, final HttpConnection conn)Registers an unadvertised alt service for the given origin and the alpn. |
| public void | replace(final Origin
the origin origin, final List<AltServicesRegistry.a set of alt services for the origin servicesDeclare a new Alternate Service endpoint for the given origin. |