public void terminated(Exception reason) { // System.out.println("terminating: "+exp); if(fut[0]!=null) fut[0].terminate(); }
public void customResultAvailable(Void result) { subscription.terminate(); } });
/** * Dispose the panel and remove any listeners. */ public void dispose() { sub.terminate(); }
public void terminated(Exception reason) { // System.out.println("terminating: "+exp); if(fut[0]!=null) fut[0].terminate(); }
public void customResultAvailable(Void result) { subscription.terminate(); } });
/** * Dispose the panel and remove any listeners. */ public void dispose() { sub.terminate(); // final IComponentListener lis = listener; // access.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("dispose") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); }
/** * Dispose the panel and remove any listeners. */ public void dispose() { sub.terminate(); // final IComponentListener lis = listener; // agent.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("dispose") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); } }
/** * Dispose the panel and remove any listeners. */ public void dispose() { sub.terminate(); // final IComponentListener lis = listener; // access.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("dispose") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); }
/** * Dispose the panel and remove any listeners. */ public void dispose() { sub.terminate(); // final IComponentListener lis = listener; // agent.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("dispose") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); } }
/** * Dispose the panel. */ public IFuture<Void> dispose() { sub.terminate(); return IFuture.DONE; // final IComponentListener lis = listener; // return access.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("removeListener") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); }
/** * Dispose the panel. */ public IFuture<Void> dispose() { sub.terminate(); return IFuture.DONE; // final IComponentListener lis = listener; // return access.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("removeListener") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); }
/** * Dispose the panel. */ public IFuture<Void> dispose() { sub.terminate(); return IFuture.DONE; // final IComponentListener lis = listener; // return access.scheduleImmediate(new IComponentStep<Void>() // { // @Classname("removeListener") // public IFuture<Void> execute(IInternalAccess ia) // { // ia.removeComponentListener(lis); // return IFuture.DONE; // } // }); }
/** * Dispose the handler. */ public void dispose() { assert SwingUtilities.isEventDispatchThread();// || Starter.isShutdown(); subscription.terminate(); } }
public void intermediateResultAvailable(String result) { if(!ret.addIntermediateResultIfUndone(result)) { fut.terminate(); } }
public void intermediateResultAvailable(String result) { if(!ret.addIntermediateResultIfUndone(result)) { fut.terminate(); } }
/** * Removes a topic from the map of local subscribers and terminates all remote subscriptions for this topic. * * @param topic The topic to be removed. */ private void removeTopic(String topic) { localsubscribers.remove(topic); List<ReplicationSubscription> replicationSubscriptions = this.repsubscriptions.get(topic); for(ReplicationSubscription replicationSubscription : replicationSubscriptions) { replicationSubscription.getSubscription().terminate(); } }
public void intermediateResultAvailable(Long filesize) { if(TransferInfo.STATE_ABORTED.equals(ti.getState())) { ocon.close(); fut.terminate(); } if(ti.update(filesize)) { publishEvent(ChatEvent.TYPE_FILE, null, ti.getOther(), ti); } } public void finished()
public void intermediateResultAvailable(Long filesize) { if(TransferInfo.STATE_ABORTED.equals(ti.getState())) { ocon.close(); fut.terminate(); } if(ti.update(filesize)) { publishEvent(ChatEvent.TYPE_FILE, null, ti.getOther(), ti); } } public void finished()
public IFuture<Void> execute(IInternalAccess ia) { mq.publish(topic, new Event("some type", cnt[0]++, agent.getComponentIdentifier())); if(cnt[0]<10) { agent.getComponentFeature(IExecutionFeature.class).waitForDelay(1000, this); } else { fut.terminate(); } return IFuture.DONE; } };
public IFuture<Void> execute(IInternalAccess ia) { if(!(cnt[0] % 2 == 0)) { // publish also remote mq.publish(topic, new Event("some type", cnt[0]++, agent.getComponentIdentifier()), true); } else { // just publish local mq.publish(topic,new Event("some type", cnt[0]++, agent.getComponentIdentifier()), false); } if(cnt[0] < 10) { agent.getComponentFeature(IExecutionFeature.class).waitForDelay(1000, this); } else { fut.terminate(); } return IFuture.DONE; } };