public class RouteIteratorFactory extends Object
RouteParsingStrategy
including ranked routing. The iterator never creates new String instances but returns a CharSequence wrapper from the existing session ID.Modifier and Type | Class and Description |
---|---|
static class | RouteIteratorFactory.ParsingCompatibility |
Constructor and Description |
---|
RouteIteratorFactory(RouteParsingStrategy routeParsingStrategy, RouteIteratorFactory.ParsingCompatibility parsingCompatibility) |
RouteIteratorFactory(RouteParsingStrategy routeParsingStrategy, RouteIteratorFactory.ParsingCompatibility parsingCompatibility, String rankedRouteDelimiter) |
Modifier and Type | Method and Description |
---|---|
Iterator<CharSequence> | iterator(String sessionId) Returns an Iterator of routes. |
public RouteIteratorFactory(RouteParsingStrategy routeParsingStrategy, RouteIteratorFactory.ParsingCompatibility parsingCompatibility)
routeParsingStrategy
- route parsing strategyparsingCompatibility
- route parsing compatibility behaviorpublic RouteIteratorFactory(RouteParsingStrategy routeParsingStrategy, RouteIteratorFactory.ParsingCompatibility parsingCompatibility, String rankedRouteDelimiter)
routeParsingStrategy
- route parsing strategyparsingCompatibility
- route parsing compatibility behaviorrankedRouteDelimiter
- String sequence to split routes at if ranked routing is enabledpublic Iterator<CharSequence> iterator(String sessionId)
Iterator
of routes.sessionId
- String of sessionID from the cookie/parameter possibly including encoded/appended affinity/route informationnull
Copyright © 2020 JBoss by Red Hat. All rights reserved.