/** * Returns an actor reference */ default <T> T getReference(final Class<T> iClass, final Object id) { return getReference(this, null, iClass, id); }
/** * Returns an observer reference to an observer in another node. * <p/> * Should only be used if the application knows for sure that an observer with the given id * indeed exists on that other node. * <p/> * This is a low level use of orbit-actors, recommended only for ActorExtensions. * * @param address the other node address. * @param iClass the IObserverClass * @param id the id, must not be null * @param <T> the ActorObserver sub interface * @return a remote reference to the observer */ default <T extends com.ea.orbit.actors.ActorObserver> T getRemoteObserverReference(NodeAddress address, final Class<T> iClass, final Object id) { return getReference(this, address, iClass, id); }