@Test public void testDefaultProbabilisticSampler() { undertest.close(); undertest = new RemoteControlledSampler.Builder(SERVICE_NAME) .withSamplingManager(samplingManager) .withInitialSampler(null) .withMetrics(metrics) .build(); assertEquals(new ProbabilisticSampler(0.001), undertest.getSampler()); }
@Override public void close() { pollTimer.cancel(); }
RemoteControlledSampler implements Sampler { @Override public void close() { pollTimer.cancel(); } }
RemoteControlledSampler implements Sampler { @Override public void close() { pollTimer.cancel(); } private  RemoteControlledSampler(Builder builder); }
RemoteControlledSampler implements Sampler { @Override public void close() { pollTimer.cancel(); } private  RemoteControlledSampler(Builder builder); @Override SamplingStatus sample(String operation, long id); @Override boolean equals(Object sampler); @Override void close(); }
RemoteControlledSampler implements Sampler { @Override public void close() { pollTimer.cancel(); } private  RemoteControlledSampler(Builder builder); @Override SamplingStatus sample(String operation, long id); @Override boolean equals(Object sampler); @Override void close(); static final String TYPE; }