@@ -138,15 +138,15 @@ synchronized long instantaneous(long now) {
138138 return duration + (now - stamp0 ) * pending ;
139139 }
140140
141- void startStream () {
141+ public void startStream () {
142142 PENDING_STREAMS .incrementAndGet (this );
143143 }
144144
145- void stopStream () {
145+ public void stopStream () {
146146 PENDING_STREAMS .decrementAndGet (this );
147147 }
148148
149- synchronized long startRequest () {
149+ public synchronized long startRequest () {
150150 long now = Clock .now ();
151151 interArrivalTime .insert (now - stamp );
152152 duration += Math .max (0 , now - stamp0 ) * pending ;
@@ -156,26 +156,26 @@ synchronized long startRequest() {
156156 return now ;
157157 }
158158
159- synchronized long stopRequest (long timestamp ) {
159+ public synchronized long stopRequest (long timestamp ) {
160160 long now = Clock .now ();
161161 duration += Math .max (0 , now - stamp0 ) * pending - (now - timestamp );
162162 pending -= 1 ;
163163 stamp0 = now ;
164164 return now ;
165165 }
166166
167- synchronized void record (double roundTripTime ) {
167+ public synchronized void record (double roundTripTime ) {
168168 median .insert (roundTripTime );
169169 lowerQuantile .insert (roundTripTime );
170170 higherQuantile .insert (roundTripTime );
171171 }
172172
173- synchronized void recordError (double value ) {
173+ public synchronized void recordError (double value ) {
174174 errorPercentage .insert (value );
175175 errorStamp = Clock .now ();
176176 }
177177
178- void setAvailability (double availability ) {
178+ public void setAvailability (double availability ) {
179179 this .availability = availability ;
180180 }
181181
@@ -270,26 +270,26 @@ long instantaneous(long now) {
270270 }
271271
272272 @ Override
273- void startStream () {}
273+ public void startStream () {}
274274
275275 @ Override
276- void stopStream () {}
276+ public void stopStream () {}
277277
278278 @ Override
279- long startRequest () {
279+ public long startRequest () {
280280 return 0 ;
281281 }
282282
283283 @ Override
284- long stopRequest (long timestamp ) {
284+ public long stopRequest (long timestamp ) {
285285 return 0 ;
286286 }
287287
288288 @ Override
289- void record (double roundTripTime ) {}
289+ public void record (double roundTripTime ) {}
290290
291291 @ Override
292- void recordError (double value ) {}
292+ public void recordError (double value ) {}
293293
294294 @ Override
295295 public String toString () {
0 commit comments