Examples of cancel()


Examples of com.arjuna.wst.BusinessActivityTerminator.cancel()

            if (participant != null)
            {
                final String messageId = MessageId.getMessageId() ;
                try
                {
                    participant.cancel() ;
                }
                catch (final FaultedException fe)
                {
                    final AddressingContext responseAddressingContext =
                        AddressingContext.createNotificationContext(addressingContext, messageId) ;
View Full Code Here

Examples of com.arjuna.wst.stub.BusinessActivityTerminatorStub.cancel()

            final String id = ctx.identifier() ;
            final EndpointReferenceType terminatorCoordinator = getTerminationCoordinator(ctx) ;
           
            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);
         
          terminatorStub.cancel();
      }
      catch (SystemException ex)
      {
          throw ex;
      }
View Full Code Here

Examples of com.arjuna.wst11.BusinessActivityTerminator.cancel()

                W3CEndpointReference endpoint = participant.getEndpoint();

                final String messageId = MessageId.getMessageId() ;
                try
                {
                    participant.cancel() ;
                }
                catch (final FaultedException fe)
                {
                    final AddressingProperties responseAddressingProperties = AddressingHelper.createNotificationContext(messageId) ;
                    TerminationParticipantClient.getClient().sendFaulted(endpoint, responseAddressingProperties, instanceIdentifier) ;
View Full Code Here

Examples of com.arjuna.wst11.stub.BusinessActivityTerminatorStub.cancel()

            final String id = ctx.identifier() ;
            final W3CEndpointReference terminatorCoordinator = getTerminationCoordinator(ctx) ;

            BusinessActivityTerminatorStub terminatorStub = new BusinessActivityTerminatorStub(id, terminatorCoordinator);

          terminatorStub.cancel();
      }
      catch (SystemException ex)
      {
          throw ex;
      }
View Full Code Here

Examples of com.atlauncher.workers.InstanceInstaller.cancel()

                    }
                });
                dialog.addWindowListener(new WindowAdapter() {
                    public void windowClosing(WindowEvent e) {
                        instanceInstaller.cancel(true);
                    }
                });
                if (isReinstall) {
                    instanceInstaller.setInstance(instance);
                }
View Full Code Here

Examples of com.cisco.server.ServerService.cancel()

          server.call();

        }
      }).start();
      sleep();
      server.cancel();
      assertTrue(server.isStopped());
    }

  }
View Full Code Here

Examples of com.cloudhopper.commons.util.windowing.WindowFuture.cancel()

            // send a request and wait for a response that never shows up
            WindowFuture future = session.sendRequestPdu(el0, 50, true);
            Assert.assertFalse(future.await());
            // a call to cancel() is usually done in sendRequestPduAndGetResponse
            // but for this test we'll manually need to call it here
            future.cancel();

            Assert.assertEquals(WindowFuture.CALLER_WAITING_TIMEOUT, future.getCallerStateHint());
           
            // send a response now after the caller would have timed out
            simulator0.sendPdu(el0Resp);
View Full Code Here

Examples of com.couchbase.client.http.AsyncConnectionRequest.cancel()

    try {
      connRequest.waitFor();
    } catch (InterruptedException e) {
      getLogger().warn(
          "Interrupted while trying to get a connection.");
      connRequest.cancel();
      return false;
    }

    NHttpClientConnection conn = connRequest.getConnection();
    if (conn == null) {
View Full Code Here

Examples of com.couchbase.client.http.RequestHandle.cancel()

    public void finalizeContext(final HttpContext context) {
      RequestHandle handle =
          (RequestHandle) context.removeAttribute("request-handle");
      if (handle != null) {
        handle.cancel();
      }
    }

    public HttpRequest submitRequest(final HttpContext context) {
      HttpOperation op = (HttpOperation) context.getAttribute("operation");
View Full Code Here

Examples of com.datastax.driver.core.ResultSetFuture.cancel()

                }
            });

            long count = countFuture.getUninterruptibly().one().getLong(0);
            if (count == limitForPartitionKeySelect) {
                partitionKeyFuture.cancel(true);
                return null; // too much effort to query all partition keys
            }
            else {
                return partitionKeyFuture.getUninterruptibly();
            }
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.