/** * cb is invoked once the server sends back messages to a client, * the client does not necessary have an actor running but might simply connect * using ordinary mt code * @param cb */ @Local @CallerSideMethod public void setServerMsgCallback(Callback<RemoteCallEntry> cb) { zzServerMsgCallback = cb; } /**
/** * @return wether this is a proxy to a remotely running actor */ @CallerSideMethod public boolean isRemote() { return __remoteId != 0; }
/** * cb is invoked once the server sends back messages to a client, * the client does not necessary have an actor running but might simply connect * using ordinary mt code * @param cb */ @Local @CallerSideMethod public void setServerMsgCallback(Callback<RemoteCallEntry> cb) { zzServerMsgCallback = cb; } /**
/** * @return the scheduler associated with this actor (determines scheduling of processing of actors to threads) */ @CallerSideMethod public Scheduler getScheduler() { return __scheduler; }
@CallerSideMethod @Local public DispatcherThread getCurrentDispatcher() { return (DispatcherThread) __currentDispatcher; }
/** * dispatch call to a service. (use forwardXX to send) * @param rce * @param clientRemoteRegistry * @return return false in case call could not be dispatched */ @CallerSideMethod protected abstract boolean dispatchRemoteCall(RemoteCallEntry rce, ConnectionRegistry clientRemoteRegistry );
@CallerSideMethod @Local public DispatcherThread getCurrentDispatcher() { return (DispatcherThread) __currentDispatcher; }
/** * @return wether this is a proxy to a remotely running actor */ @CallerSideMethod public boolean isRemote() { return __remoteId != 0; }
/** * just enqueue given runable to this actors mailbox and execute on the actor's thread * WARNING: the similar named method execInThreadPool() works different (bad naming) * @param command */ @CallerSideMethod @Local @Override public void execute(Runnable command) { self().__submit(command); }
/** * synchronous method returning true in case this actor is stopped */ @CallerSideMethod public boolean isStopped() { return __stopped; }
/** * just enqueue given runable to this actors mailbox and execute on the actor's thread * WARNING: the similar named method execInThreadPool() works different (bad naming) * @param command */ @CallerSideMethod @Local @Override public void execute(Runnable command) { self().__submit(command); }
/** * @return the scheduler associated with this actor (determines scheduling of processing of actors to threads) */ @CallerSideMethod public Scheduler getScheduler() { return __scheduler; }
/** * @return the proxy of this actor */ @CallerSideMethod public Actor getActorRef() { return __self; }
/** * dispatch call to a service. (use forwardXX to send) * @param rce * @param clientRemoteRegistry * @return return false in case call could not be dispatched */ @CallerSideMethod protected abstract boolean dispatchRemoteCall(RemoteCallEntry rce, ConnectionRegistry clientRemoteRegistry );
/** * synchronous method returning true in case this actor is stopped */ @CallerSideMethod public boolean isStopped() { return __stopped; }
/** * @return the proxy of this actor */ @CallerSideMethod public Actor getActorRef() { return __self; }
@CallerSideMethod protected boolean isStateful() { return stateful; }
@CallerSideMethod protected void willDispatch() { }
@CallerSideMethod public void resetToSysout() { this.logger = defaultLogger; }
@CallerSideMethod protected boolean isStateful() { return stateful; }