Interface StreamUpdater
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SimpleStreamUpdater,StreamSeedUpdater
public interface StreamUpdater extends Serializable
The StreamUpdater interface describes how to update the seed values for the next replication.Copyright (c) 2021-2023 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidupdateSeed(String streamId, StreamInterface stream, int replicationNumber)Update one seed for the given streamId and replication number.default voidupdateSeeds(Map<String,StreamInterface> streams, int replicationNumber)Update all seeds for the given replication number.
-
-
-
Method Detail
-
updateSeeds
default void updateSeeds(Map<String,StreamInterface> streams, int replicationNumber)
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
void updateSeed(String streamId, StreamInterface stream, int replicationNumber)
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
-
-