Merge branch 'master' into wip-2134-deathwatch2.0-√

This commit is contained in:
Viktor Klang 2012-06-04 13:58:09 +02:00
commit a5127b12dd
46 changed files with 2068 additions and 221 deletions

View file

@ -0,0 +1,18 @@
/**
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.pattern;
import akka.util.Unsafe;
class AbstractCircuitBreaker {
protected final static long stateOffset;
static {
try {
stateOffset = Unsafe.instance.objectFieldOffset(CircuitBreaker.class.getDeclaredField("_currentStateDoNotCallMeDirectly"));
} catch(Throwable t){
throw new ExceptionInInitializerError(t);
}
}
}