Interface StreamUpdater
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SimpleStreamUpdater
,StreamSeedUpdater
The StreamUpdater interface describes how to update the seed values for the next replication.
Copyright (c) 2021-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Alexander Verbraeck
-
Method Summary
Modifier and TypeMethodDescriptionvoid
updateSeed
(String streamId, StreamInterface stream, int replicationNumber) Update one seed for the given streamId and replication number.default void
updateSeeds
(Map<String, StreamInterface> streams, int replicationNumber) Update all seeds for the given replication number.
-
Method Details
-
updateSeeds
Update all seeds for the given replication number. The method should be fully reproducible, and can be based on the previous seed values, possibly the String representation, and the replication number.- Parameters:
streams
- Map<String, StreamIterface>; the map of the streams for the replicationreplicationNumber
- int; the replication number for which to set the seed values
-
updateSeed
Update one seed for the given streamId and replication number. The method should be fully reproducible, and can be based on the previous seed value of the stream, possibly the String representation, and the replication number.- Parameters:
streamId
- String; the id of the stream to updatestream
- StreamInterface; the stream to update for this replicationreplicationNumber
- int; the replication number for which to set the seed value
-