File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
metrics-mimir/src/main/java/io/scalecube/metrics/mimir
metrics/src/main/java/io/scalecube/metrics Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1111import org .agrona .ErrorHandler ;
1212import org .agrona .concurrent .AgentInvoker ;
1313import org .agrona .concurrent .AgentRunner ;
14+ import org .agrona .concurrent .BackoffIdleStrategy ;
1415import org .agrona .concurrent .EpochClock ;
1516import org .agrona .concurrent .IdleStrategy ;
1617import org .agrona .concurrent .ManyToOneConcurrentArrayQueue ;
17- import org .agrona .concurrent .SleepingMillisIdleStrategy ;
1818import org .agrona .concurrent .SystemEpochClock ;
1919import org .slf4j .Logger ;
2020import org .slf4j .LoggerFactory ;
@@ -154,7 +154,7 @@ private void conclude() {
154154 }
155155
156156 if (idleStrategy == null ) {
157- idleStrategy = new SleepingMillisIdleStrategy ( 100 );
157+ idleStrategy = new BackoffIdleStrategy ( );
158158 }
159159
160160 Objects .requireNonNull (url , "url" );
Original file line number Diff line number Diff line change 3030import org .agrona .SystemUtil ;
3131import org .agrona .concurrent .AgentInvoker ;
3232import org .agrona .concurrent .AgentRunner ;
33+ import org .agrona .concurrent .BackoffIdleStrategy ;
3334import org .agrona .concurrent .CachedEpochClock ;
3435import org .agrona .concurrent .EpochClock ;
3536import org .agrona .concurrent .IdleStrategy ;
36- import org .agrona .concurrent .SleepingMillisIdleStrategy ;
3737import org .agrona .concurrent .SystemEpochClock ;
3838import org .agrona .concurrent .UnsafeBuffer ;
3939import org .agrona .concurrent .broadcast .BroadcastTransmitter ;
@@ -252,7 +252,7 @@ private void conclude() {
252252 }
253253
254254 if (idleStrategy == null ) {
255- idleStrategy = new SleepingMillisIdleStrategy ( 100 );
255+ idleStrategy = new BackoffIdleStrategy ( );
256256 }
257257 }
258258
@@ -417,7 +417,7 @@ public IdleStrategy idleStrategy() {
417417 return idleStrategy ;
418418 }
419419
420- BroadcastTransmitter metricsTransmitter () {
420+ private BroadcastTransmitter metricsTransmitter () {
421421 return metricsTransmitter ;
422422 }
423423
You can’t perform that action at this time.
0 commit comments