Skip to content

Instantly share code, notes, and snippets.

View mgodave's full-sized avatar
🤟
move along, nothing to see here...

Dave Rusek mgodave

🤟
move along, nothing to see here...
  • ex-Twitter
  • Denver, CO
  • 12:03 (UTC -07:00)
View GitHub Profile
@dclements
dclements / checkstyle.xml
Created February 14, 2013 21:58
Checkstyle Configuration.
<?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">
@gseitz
gseitz / ActorMetrics.scala
Created October 3, 2011 05:38
Trait for exposing metrics for akka-actors.
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)}
}