Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.advantageous.qbit.metrics.support;
 
 
 
 public class LocalStatsCollectorBuilder {
    private int calculateEveryNSeconds =60;
    private ServiceBuilder serviceBuilder;
    private ServiceQueue serviceQueue;
    private Timer timer;
        return new LocalStatsCollectorBuilder();
    }
    public Timer getTimer() {
        if ( == null) {
             = Timer.timer();
        }
        return ;
    }
    public LocalStatsCollectorBuilder setTimer(Timer timer) {
        this. = timer;
        return this;
    }
        if ( == null) {
        }
        return ;
    }
        this. = localStatsCollector;
        return this;
    }
    public int getCalculateEveryNSeconds() {
        return ;
    }
    public LocalStatsCollectorBuilder setCalculateEveryNSeconds(int calculateEveryNSeconds) {
        this. = calculateEveryNSeconds;
        return this;
    }
    public ServiceBuilder getServiceBuilder() {
        if ( == null) {
             = ServiceBuilder.serviceBuilder().setServiceObject(getLocalStatsCollector());
        }
        return ;
    }
        this. = serviceBuilder;
        return this;
    }
    public ServiceQueue getServiceQueue() {
        if (==null) {
             = getServiceBuilder().build();
        }
        return ;
    }
    public LocalStatsCollectorBuilder setServiceQueue(ServiceQueue serviceQueue) {
        this. = serviceQueue;
        return this;
    }
    public LocalStatsCollectorAsync build() {
        return proxyWithAutoFlush;
    }
        return build();
    }
New to GrepCode? Check out our FAQ X