- java.lang.Object
-
- swim.api.agent.AbstractAgentRoute<A>
-
- All Implemented Interfaces:
AgentFactory<A>
,AgentRoute<A>
- Direct Known Subclasses:
JavaAgentFactory
,JsAgentFactory
public abstract class AbstractAgentRoute<A extends Agent> extends Object implements AgentRoute<A>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentRouteContext
context
-
Constructor Summary
Constructors Constructor Description AbstractAgentRoute()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AgentRouteContext
agentRouteContext()
The internal context used to provide concrete implementations to mostAgentRoute
methods.abstract A
createAgent(AgentContext context)
Creates an instance ofA
with internal contextcontext
.UriPattern
pattern()
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.Value
props(Uri nodeUri)
String
routeName()
Returns a plane-unique identifier for this agent route.void
setAgentRouteContext(AgentRouteContext context)
Updates the internal context used to provide concrete implementations to mostAgentRoute
methods.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.agent.AgentFactory
id
-
-
-
-
Field Detail
-
context
protected AgentRouteContext context
-
-
Method Detail
-
agentRouteContext
public AgentRouteContext agentRouteContext()
Description copied from interface:AgentRoute
The internal context used to provide concrete implementations to mostAgentRoute
methods.- Specified by:
agentRouteContext
in interfaceAgentRoute<A extends Agent>
-
setAgentRouteContext
public void setAgentRouteContext(AgentRouteContext context)
Description copied from interface:AgentRoute
Updates the internal context used to provide concrete implementations to mostAgentRoute
methods.- Specified by:
setAgentRouteContext
in interfaceAgentRoute<A extends Agent>
-
routeName
public String routeName()
Description copied from interface:AgentRoute
Returns a plane-unique identifier for this agent route.- Specified by:
routeName
in interfaceAgentRoute<A extends Agent>
-
pattern
public UriPattern pattern()
Description copied from interface:AgentRoute
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.- Specified by:
pattern
in interfaceAgentRoute<A extends Agent>
-
createAgent
public abstract A createAgent(AgentContext context)
Description copied from interface:AgentFactory
Creates an instance ofA
with internal contextcontext
.- Specified by:
createAgent
in interfaceAgentFactory<A extends Agent>
-
-