public class RouteChangedEvent
extends org.springframework.context.ApplicationEvent
source| Constructor and Description |
|---|
RouteChangedEvent(Object source,
String distance,
Long depotId,
Collection<ShallowRoute> routes)
Create a new ApplicationEvent.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
depot()
The depot ID.
|
String |
distance() |
Collection<ShallowRoute> |
routes()
Routes of all vehicles.
|
getSource, toStringpublic RouteChangedEvent(Object source, String distance, Long depotId, Collection<ShallowRoute> routes)
source - the object on which the event initially occurred (never null)distance - total distance of all vehicle routesdepotId - depot ID. May be null if there are no locations.routes - vehicle routespublic Collection<ShallowRoute> routes()
public String distance()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.