akka.actor
Class TypedActor.MethodCall
java.lang.Object
akka.actor.TypedActor.MethodCall
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
- Enclosing class:
- TypedActor
public static class TypedActor.MethodCall
- extends java.lang.Object
- implements scala.Product, scala.Serializable
This class represents a Method call, and has a reference to the Method to be called and the parameters to supply
It's sent to the ActorRef backing the TypedActor and can be serialized and deserialized
- See Also:
- Serialized Form
Constructor Summary |
TypedActor.MethodCall(java.lang.reflect.Method method,
java.lang.Object[] parameters)
|
Method Summary |
java.lang.Object |
apply(java.lang.Object instance)
Invokes the Method on the supplied instance
|
boolean |
isOneWay()
|
java.lang.reflect.Method |
method()
|
java.lang.Object[] |
parameters()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
TypedActor.MethodCall
public TypedActor.MethodCall(java.lang.reflect.Method method,
java.lang.Object[] parameters)
method
public java.lang.reflect.Method method()
parameters
public java.lang.Object[] parameters()
isOneWay
public boolean isOneWay()
apply
public java.lang.Object apply(java.lang.Object instance)
- Invokes the Method on the supplied instance
- Throws:
the
- underlying exception if there's an InvocationTargetException thrown on the invocation