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:
ServerDescriptor.getId()(logical server SID);- the server crypto key selected by
AetherCloudClient.getCryptoEngineForServer(short); - any wire format or nested client stream semantics.
The router is set once, before the first connect() call, and is
never mutated afterwards.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorkConnectionRouterDefault direct routing: physical URI is derived from theServerDescriptorexactly as before proxy support was added. -
Method Summary
-
Field Details
-
DIRECT
Default direct routing: physical URI is derived from theServerDescriptorexactly as before proxy support was added.
-
-
Method Details
-
resolve
Resolve the physical transport URI for the given logical server.- Parameters:
server- logical server descriptor; nevernull- Returns:
- physical URI to connect to, or
nullto fall back to the descriptor-provided URI
-