2011-12-21 21:32:20 +13:00
|
|
|
/**
|
2012-01-19 18:21:06 +01:00
|
|
|
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
|
2011-12-21 21:32:20 +13:00
|
|
|
*/
|
2010-11-12 16:09:31 +13:00
|
|
|
|
2011-12-21 21:32:20 +13:00
|
|
|
package akka.docs.transactor;
|
|
|
|
|
|
|
|
|
|
//#class
|
2010-11-12 16:09:31 +13:00
|
|
|
import akka.actor.ActorRef;
|
|
|
|
|
|
|
|
|
|
public class Increment {
|
|
|
|
|
private ActorRef friend = null;
|
|
|
|
|
|
|
|
|
|
public Increment() {}
|
|
|
|
|
|
|
|
|
|
public Increment(ActorRef friend) {
|
|
|
|
|
this.friend = friend;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean hasFriend() {
|
|
|
|
|
return friend != null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ActorRef getFriend() {
|
|
|
|
|
return friend;
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-12-21 21:32:20 +13:00
|
|
|
//#class
|