java.lang.Object
swim.api.agent.AbstractAgentRoute<A>
- All Implemented Interfaces:
AgentFactory<A>
,AgentRoute<A>
- Direct Known Subclasses:
JavaAgentFactory
,JsAgentFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe internal context used to provide concrete implementations to mostAgentRoute
methods.abstract A
createAgent
(AgentContext context) Creates an instance ofA
with internal contextcontext
.pattern()
TheUriPattern
that everynodeUri
corresponding to an instance ofA
must match.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 Details
-
context
-
-
Constructor Details
-
AbstractAgentRoute
public AbstractAgentRoute()
-
-
Method Details
-
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
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
Description copied from interface:AgentRoute
Returns a plane-unique identifier for this agent route.- Specified by:
routeName
in interfaceAgentRoute<A extends Agent>
-
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
Description copied from interface:AgentFactory
Creates an instance ofA
with internal contextcontext
.- Specified by:
createAgent
in interfaceAgentFactory<A extends Agent>
-
props
- Specified by:
props
in interfaceAgentFactory<A extends Agent>
-