Examples of success()


Examples of org.neo4j.graphdb.Transaction.success()

    Transaction tx = neo4jDb.beginTx();
    Lock lock = null;
    try {
      lock = tx.acquireWriteLock( sequence );
      int nextValue = updateSequenceValue( sequence, increment );
      tx.success();
      lock.release();
      return nextValue;
    }
    finally {
      tx.finish();
View Full Code Here

Examples of org.neo4j.graphdb.Transaction.success()

    public void setName(String name) {
        Transaction tx = db.beginTx();
        try {
            node.setProperty(AssetDB.NAME,name);
            tx.success();
        } finally {
            tx.finish();
        }
    }
View Full Code Here

Examples of org.neo4j.rest.graphdb.transaction.RemoteCypherTransaction.success()

    }

    @Override
    public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException, RollbackException, SecurityException, SystemException {
        RemoteCypherTransaction tx = getRemoteCypherTransaction();
        tx.success();
        tx.close();
    }

    @Override
    public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException {
View Full Code Here

Examples of org.qi4j.library.circuitbreaker.CircuitBreaker.success()

            {
                throw circuitBreaker.lastThrowable();
            }

            Object result = next.invoke( proxy, method, args );
            circuitBreaker.success();
            return result;
           
        } catch( Throwable throwable )
        {
            circuitBreaker.throwable( throwable );
View Full Code Here

Examples of org.uddi4j.response.DispositionReport.success()

      try {
        expiredAuthToken = proxy.get_authToken(config.getProperty("expired"),
                                               config.getProperty("password"));
        DispositionReport disp =
            proxy.discard_authToken(expiredAuthToken.getAuthInfoString());
        assertTrue(disp.success());
      }
      catch (TransportException ex) {
      }
      catch (UDDIException ex) {
      }
View Full Code Here

Examples of play.libs.WS.HttpResponse.success()

            .addPair("include_deleted", "false")
            .create();

        try {
            HttpResponse resp = get(ws);
            if (resp.success()) {
                DbxMetadata ret = new Gson().fromJson(resp.getJson(), DbxMetadata.class);
                if (ret.isDeleted()) {
                    return null;
                }
                return ret;
View Full Code Here

Examples of threescale.v3.api.AuthorizeResponse.success()

        params.add("usage", usage);                                         // Add 1st level to top level as "usage"

        try {
            final AuthorizeResponse response = serviceApi.authrep(params)// Perform the AuthRep and get the response

            if (response.success()) {                                       // Check if the AuthRep succeeded
                // Perform your calls there
            } else {
                // Handle failure here
            }
        } catch (ServerError serverError) {
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.