This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor.Actor | |
import com.yammer.metrics.Instrumented | |
// Useful for monitoring the mailbox size of actors. | |
// Just fire up your favorite JMX client and watch the pretty graph (which hopefully is a flatline at 0). | |
trait ActorMetrics extends Instrumented { actor: Actor => | |
metrics.gauge("mailbox size", self.id){actor.self.dispatcher.mailboxSize(actor.self)} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- | |
This configuration file was written by the eclipse-cs plugin configuration editor | |
--> | |
<module name="Checker"> | |
<property name="severity" value="warning"/> | |
<module name="TreeWalker"> |