@Local public abstract void router$handleServiceDisconnect(Actor disconnected );
@Local abstract public void router$handleServiceDisconnect(Actor x);
@Local public abstract void router$handleServiceDisconnect(Actor disconnected );
@Local abstract public void router$handleServiceDisconnect(Actor x);
@Local public void init() { tables = new HashMap(); stateListeners = new ArrayList(); tableDesc = new HashMap(); }
/** * 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; } /**
/** * 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; } /**
@CallerSideMethod @Local public DispatcherThread getCurrentDispatcher() { return (DispatcherThread) __currentDispatcher; }
@Local public void debounce(long timeout, String tag, Runnable toRun ) { if ( _debounceMap == null ) _debounceMap = new HashMap<>(7); _debounceMap.put(tag,toRun); delayed(timeout, () -> { if ( _debounceMap.get(tag) == toRun ) { _debounceMap.remove(tag); toRun.run(); } }); }
@Local public void debounce(long timeout, String tag, Runnable toRun ) { if ( _debounceMap == null ) _debounceMap = new HashMap<>(7); _debounceMap.put(tag,toRun); delayed(timeout, () -> { if ( _debounceMap.get(tag) == toRun ) { _debounceMap.remove(tag); toRun.run(); } }); }
@CallerSideMethod @Local public DispatcherThread getCurrentDispatcher() { return (DispatcherThread) __currentDispatcher; }
@Override @Local public IPromise<Monitorable[]> getSubMonitorables() { return new Promise<>(new Monitorable[0]); }
@Override @Local public IPromise<Monitorable[]> getSubMonitorables() { return new Promise<>(new Monitorable[0]); }
@CallerSideMethod @Local public IPromise<BabelResult> browserify( String filePath, BabelOpts opts ) { return browserifyInternal(new File(filePath).getAbsolutePath(), opts); }
@Local public void router$handleServiceDisconnect(Actor x) { //FIXME: reply pending callbacks / promises with error List<Actor> newList = remoteServices.stream() .filter(rs -> rs != x.getActor() && rs != x.getActorRef()) .collect(Collectors.toList()); boolean remove = newList.size() != remoteServices.size(); if ( ! remove ) { // can happen multiple times } else { remoteServices = newList; Log.Info(this, "removed service "+x); } }
@Local public void router$handleServiceDisconnect(Actor x) { //FIXME: reply pending callbacks / promises with error List<Actor> newList = remoteServices.stream() .filter(rs -> rs != x.getActor() && rs != x.getActorRef()) .collect(Collectors.toList()); boolean remove = newList.size() != remoteServices.size(); if ( ! remove ) { // can happen multiple times } else { remoteServices = newList; Log.Info(this, "removed service "+x); } }
@Local public void unpublish() { if ( __connections != null ) __connections.forEach( conreg -> conreg.unpublishActor(this)); }
@Local public void router$handleServiceDisconnect(Actor x) { //FIXME: reply pending callbacks / promises with error boolean remove = remoteServices.remove(x.getActor()); if ( ! remove ) remove = remoteServices.remove(x.getActorRef()); if ( ! remove ) { // can happen multiple times } else { Log.Info(this, "removed service "+x); } }
@Local public void unpublish() { if ( __connections != null ) __connections.forEach( conreg -> conreg.unpublishActor(this)); }
@Local public void router$handleServiceDisconnect(Actor x) { //FIXME: reply pending callbacks / promises with error boolean remove = remoteServices.remove(x.getActor()); if ( ! remove ) remove = remoteServices.remove(x.getActorRef()); if ( ! remove ) { // can happen multiple times } else { Log.Info(this, "removed service "+x); } }