Examples of cancel()


Examples of org.jivesoftware.smack.PacketCollector.cancel()


        // Wait up to 5 seconds for a result.
        IQ result = (IQ) collector.nextResult(SmackConfiguration
                .getPacketReplyTimeout());
        collector.cancel();
        if( dialog.cancelled ) return;

        if (result != null && result.getType() == IQ.Type.RESULT) {
            Time t = (Time) result;
View Full Code Here

Examples of org.jivesoftware.xmpp.workgroup.request.Request.cancel()

                Request request = UserRequest.getRequest(workgroup, sender);
                InterceptorManager interceptorManager = QueueInterceptorManager.getInstance();
                try {
                    interceptorManager.invokeInterceptors(workgroup.getJID().toBareJID(), packet,
                            true, false);
                    request.cancel(Request.CancelType.DEPART);
                    iq.add(request.getSessionElement());
                    interceptorManager.invokeInterceptors(workgroup.getJID().toBareJID(), packet,
                            true, true);
                }
                catch (PacketRejectedException e) {
View Full Code Here

Examples of org.jivesoftware.xmpp.workgroup.request.UserRequest.cancel()

                Request request = UserRequest.getRequest(workgroup, sender);
                InterceptorManager interceptorManager = QueueInterceptorManager.getInstance();
                try {
                    interceptorManager.invokeInterceptors(workgroup.getJID().toBareJID(), packet,
                            true, false);
                    request.cancel(Request.CancelType.DEPART);
                    iq.add(request.getSessionElement());
                    interceptorManager.invokeInterceptors(workgroup.getJID().toBareJID(), packet,
                            true, true);
                }
                catch (PacketRejectedException e) {
View Full Code Here

Examples of org.jsynthlib.core.GuiHandler.ISearchHandler.cancel()

        searchHandler.findFirst("Testingtesting");
        dialog = testFrame.dialog(matcher);
        guiHandler.closeDialog(dialog);

        searchHandler.cancel();

        guiHandler.closeLibrary(library);
        guiHandler.uninstallDevice(null);
    }
View Full Code Here

Examples of org.knowhowlab.osgi.monitoradmin.job.AbstractMonitoringJob.cancel()

            if (!jobs.isEmpty()) {
                synchronized (jobs) {
                    Iterator<AbstractMonitoringJob> iterator = jobs.iterator();
                    while (iterator.hasNext()) {
                        AbstractMonitoringJob job = iterator.next();
                        job.cancel();
                        iterator.remove();
                    }
                }
            }
        } finally {
View Full Code Here

Examples of org.lealone.command.Command.cancel()

            if (s.getId() == targetSessionId) {
                Command c = s.getCurrentCommand();
                if (c == null) {
                    return false;
                }
                c.cancel();
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.lealone.command.CommandInterface.cancel()

            checkClosed();
            // executingCommand can be reset  by another thread
            CommandInterface c = executingCommand;
            try {
                if (c != null) {
                    c.cancel();
                }
            } finally {
                setExecutingStatement(null);
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.lightview.service.EscalationProvider.cancel()

    void deactivateEscalationService(String scriptName) {
        EscalationProvider snapshot = this.runningServices.get(scriptName);
        if(snapshot == null)
            return;
        snapshot.cancel();
        this.runningServices.remove(scriptName);
    }
}
View Full Code Here

Examples of org.locationtech.udig.catalog.tests.ui.workflow.DialogDriver.cancel()

                IDialogConstants.CANCEL_ID});

        driver.schedule();
        catalogImport.getDialog().getWorkflowWizard().getWorkflow().setContext(context);
        catalogImport.run(new DummyMonitor(), context);
        driver.cancel();
    }
}
View Full Code Here

Examples of org.modeshape.jcr.query.QueryContext.cancel()

                }
            }

            @Override
            public boolean cancel() {
                return queryContext.cancel();
            }
        };
    }

    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.