Stopwatch instantiation has changed, so adjust accordingly.
Change-Id: I97800f17c0af3dad038b07c6aa393c44fd9f80ee
Signed-off-by: Robert Varga <rovarga@cisco.com>
public BGPSessionStats(final Open remoteOpen, final int holdTimerValue, final int keepAlive, final Channel channel,
final Optional<BGPSessionPreferences> localPreferences, final Collection<BgpTableType> tableTypes) {
- this.sessionStopwatch = new Stopwatch();
+ this.sessionStopwatch = Stopwatch.createUnstarted();
this.stats = new BgpSessionState();
this.stats.setHoldtimeCurrent(holdTimerValue);
this.stats.setKeepaliveCurrent(keepAlive);
this.future = SettableFuture.create();
this.metadata = metadata;
this.state = State.UNSENT;
- this.stopwatch = new Stopwatch().start();
+ this.stopwatch = Stopwatch.createStarted();
}
protected ListenableFuture<OperationResult> getFuture() {
public long getElapsedMillis() {
return this.stopwatch.elapsed(TimeUnit.MILLISECONDS);
}
-}
\ No newline at end of file
+}
private long reqCount = 0;
public SessionListenerState() {
- this.sessionUpDuration = new Stopwatch();
+ this.sessionUpDuration = Stopwatch.createUnstarted();
this.capa = new PeerCapabilities();
}