Interface WorkConnectionRouter

All Known Implementing Classes:
WorkConnectionRoutes

public interface WorkConnectionRouter
Immutable client-side policy that decides which physical transport URI is used for a work ConnectionWork created for a logical ServerDescriptor.

The router only changes the physical FastMeta endpoint. It must never be used to alter:

The router is set once, before the first connect() call, and is never mutated afterwards.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Default direct routing: physical URI is derived from the ServerDescriptor exactly as before proxy support was added.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(io.aether.api.common.ServerDescriptor server)
    Resolve the physical transport URI for the given logical server.
  • Field Details

    • DIRECT

      static final WorkConnectionRouter DIRECT
      Default direct routing: physical URI is derived from the ServerDescriptor exactly as before proxy support was added.
  • Method Details

    • resolve

      URI resolve(io.aether.api.common.ServerDescriptor server)
      Resolve the physical transport URI for the given logical server.
      Parameters:
      server - logical server descriptor; never null
      Returns:
      physical URI to connect to, or null to fall back to the descriptor-provided URI