Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public boolean isStarted()
}

@Override
public boolean monitor(ServiceEmitter emitter)
public synchronized boolean monitor(ServiceEmitter emitter)
{
if (started) {
return doMonitor(emitter);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public interface Monitor
void stop();

/**
* Emit metrics using the given emitter.
* Emit metrics using the given emitter. May be called from two separate threads: the scheduling thread and
* a lifecycle thread that is shutting down monitors. Therefore, this method must be thread-safe.
*
* @return true if this monitor needs to continue monitoring. False otherwise.
*/
Expand Down
Loading