Skip to content

Commit

Permalink
#2897: javaformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ulischulte committed Nov 17, 2023
1 parent e3e834b commit 75a2365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public class InfoUpdateTrigger extends AbstractEventHandler<InstanceEvent> {
public InfoUpdateTrigger(InfoUpdater infoUpdater, Publisher<InstanceEvent> publisher) {
super(publisher, InstanceEvent.class);
this.infoUpdater = infoUpdater;
this.intervalCheck = new IntervalCheck("info", this::updateInfo, Duration.ofMinutes(5), Duration.ofMinutes(1), Duration.ofMinutes(10));
this.intervalCheck = new IntervalCheck("info", this::updateInfo, Duration.ofMinutes(5), Duration.ofMinutes(1),
Duration.ofMinutes(10));
}

@Override
Expand Down Expand Up @@ -82,4 +83,5 @@ public void setLifetime(Duration infoLifetime) {
public void setMaxBackoff(Duration maxBackoff) {
this.intervalCheck.setMaxBackoff(maxBackoff);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public class StatusUpdateTrigger extends AbstractEventHandler<InstanceEvent> {
public StatusUpdateTrigger(StatusUpdater statusUpdater, Publisher<InstanceEvent> publisher) {
super(publisher, InstanceEvent.class);
this.statusUpdater = statusUpdater;
this.intervalCheck = new IntervalCheck("status", this::updateStatus, Duration.ofSeconds(10), Duration.ofSeconds(10), Duration.ofSeconds(60));
this.intervalCheck = new IntervalCheck("status", this::updateStatus, Duration.ofSeconds(10),
Duration.ofSeconds(10), Duration.ofSeconds(60));
}

@Override
Expand Down

0 comments on commit 75a2365

Please sign in to comment.