APISonar


org.glowroot.agent.collector.Collector.log

> org > glowroot > agent > collector > Collector > log
org APIs glowroot APIs agent APIs collector APIs Collector APIs log APIs

Example 1
private volatile @MonotonicNonNull Collector instance;

    public void log(LogEvent logEvent) throws Exception {
        if (instance == null) {
            if (latch.await(2, MINUTES)) {
                checkNotNull(instance).log(logEvent);
            }
        } else {
            instance.log(logEvent);
        }
    }