Minor, added import
This commit is contained in:
parent
e5cee9faa4
commit
d0447c76cb
2 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ Here is an example:
|
|||
|
||||
.. code-block:: java
|
||||
|
||||
import akka.actor.UntypedActor;
|
||||
import akka.event.EventHandler;
|
||||
|
||||
public class SampleUntypedActor extends UntypedActor {
|
||||
|
||||
public void onReceive(Object message) throws Exception {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@ Here is an example:
|
|||
|
||||
.. code-block:: scala
|
||||
|
||||
import akka.actor.Actor
|
||||
import akka.event.EventHandler
|
||||
|
||||
class MyActor extends Actor {
|
||||
def receive = {
|
||||
case "test" => EventHandler.info(this, "received test")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue