File tree Expand file tree Collapse file tree
server/src/main/java/swim/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public class UnitAgent extends AbstractAgent {
1919 logMessage ("histogram: replaced " + k + "'s value to " + Recon .toString (n ) + " from " + Recon .toString (o ));
2020 dropOldData ();
2121 });
22+
2223 @ SwimLane ("history" )
2324 private final ListLane <Value > history = this .<Value >listLane ()
2425 .didUpdate ((idx , newValue , oldValue ) -> {
@@ -29,6 +30,7 @@ public class UnitAgent extends AbstractAgent {
2930 final int willDrop = Math .max (0 , this .history .size () - 200 );
3031 this .history .drop (willDrop );
3132 });
33+
3234 @ SwimLane ("latest" )
3335 private final ValueLane <Value > latest = this .<Value >valueLane ()
3436 .didSet ((newValue , oldValue ) -> {
@@ -39,6 +41,7 @@ public class UnitAgent extends AbstractAgent {
3941 .item (newValue )
4042 );
4143 });
44+
4245 @ SwimLane ("publish" )
4346 public final CommandLane <Value > publish = this .<Value >commandLane ()
4447 .onCommand (v -> {
You can’t perform that action at this time.
0 commit comments