Class WebSocketRoutingPlanSender
- java.lang.Object
-
- org.optaweb.vehiclerouting.plugin.websocket.WebSocketRoutingPlanSender
-
- All Implemented Interfaces:
RoutingPlanConsumer
@Component class WebSocketRoutingPlanSender extends Object implements RoutingPlanConsumer
Broadcasts updated route to interested clients over WebSocket.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static StringTOPIC_ROUTE
-
Constructor Summary
Constructors Constructor Description WebSocketRoutingPlanSender(org.springframework.messaging.simp.SimpMessagingTemplate webSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumePlan(RoutingPlan routingPlan)Consume a routing plan.
-
-
-
Field Detail
-
TOPIC_ROUTE
static final String TOPIC_ROUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
consumePlan
public void consumePlan(RoutingPlan routingPlan)
Description copied from interface:RoutingPlanConsumerConsume a routing plan.- Specified by:
consumePlanin interfaceRoutingPlanConsumer- Parameters:
routingPlan- routing plan
-
-