/** * Returns a new {@link Snapshot} instance that is versioned uniformly across all resources. * * @param clusters the cluster resources in this snapshot * @param endpoints the endpoint resources in this snapshot * @param listeners the listener resources in this snapshot * @param routes the route resources in this snapshot * @param version the version associated with all resources in this snapshot */ public static Snapshot create( Iterable<Cluster> clusters, Iterable<ClusterLoadAssignment> endpoints, Iterable<Listener> listeners, Iterable<RouteConfiguration> routes, Iterable<Secret> secrets, String version) { return new AutoValue_Snapshot( SnapshotResources.create(clusters, version), SnapshotResources.create(endpoints, version), SnapshotResources.create(listeners, version), SnapshotResources.create(routes, version), SnapshotResources.create(secrets, version)); }
return new AutoValue_Snapshot( SnapshotResources.create(clusters, clustersVersion), SnapshotResources.create(endpoints, endpointsVersion),