Examples of discard()


Examples of org.wildfly.clustering.ee.Batch.discard()

            }
        } finally {
            if (success) {
                batch.close();
            } else {
                batch.discard();
            }
        }
    }

    @Override
View Full Code Here

Examples of org.wildfly.clustering.ee.infinispan.TransactionBatch.discard()

            success = true;
        } finally {
            if (success) {
                batch.close();
            } else {
                batch.discard();
            }
        }
        return null;
    }
}
View Full Code Here

Examples of org.wso2.carbon.registry.core.Collection.discard()

                //*****************************//
                long queryEnd = System.nanoTime();
                long queryTime = queryEnd - queryStart;
                System.out.println("CSV," + threadName + "," + "query," + queryTime / 1000000);

                r2.discard();

                long deleteStart = System.nanoTime();
                //*****************************//
                registry.delete(basePath + i + "/s1/a1");
                //*****************************//
 
View Full Code Here

Examples of org.wso2.carbon.registry.core.CollectionImpl.discard()

                    "used to store the resources required by the carbon server.";
            systemCollection.setDescription(systemDescription);
            registry.put(RegistryUtils.getAbsolutePath(
                    registry.getRegistryContext(), RegistryConstants.SYSTEM_COLLECTION_BASE_PATH),
                    systemCollection);
            systemCollection.discard();

            CollectionImpl localRepositoryCollection = (CollectionImpl) registry.newCollection();
            String localRepositoryDescription =
                    "Local data repository of the carbon server. This " +
                            "collection is used to store the resources local to this carbon " +
View Full Code Here

Examples of org.wso2.carbon.registry.core.Resource.discard()

                    String transportProtocol = resource.getProperty(RegistryResources.Transports.PROTOCOL_NAME);
                    if(transportProtocol.equals("https")){
                        httpsEnabled = true;
                        break;
                    }
                    resource.discard();
                }
               
                if (httpsEnabled ||Boolean.valueOf(serviceResource.getProperty(RegistryResources.ServiceProperties.EXPOSED_ON_ALL_TANSPORTS))) {
                    keyStore = keyStoreManager.getPrimaryKeyStore();
                }
View Full Code Here

Examples of org.wso2.carbon.registry.core.ResourceImpl.discard()

            Resource resource2 = registry.get(path);

            assertEquals("File content is not matching", new String((byte[]) resource.getContent()),
                    new String((byte[]) resource2.getContent()));

            resource.discard();
            res1.discard();
            resource1.discard();
            resource2.discard();
            Thread.sleep(100);
        }
View Full Code Here

Examples of play.mvc.Scope.Flash.discard()

    Flash fl = Flash.current();
    if (RenderResultCache.shouldIgnoreCacheInCurrentAndNextReq()) {
      fl.put(RenderResultCache.READ_THRU_FLASH, "yes");
    } else {
      fl.remove(RenderResultCache.READ_THRU_FLASH);
      fl.discard(RenderResultCache.READ_THRU_FLASH);
    }

    // always reset the flag since the thread may be reused for another
    // request processing
    RenderResultCache.setIgnoreCacheInCurrentAndNextReq(false);
View Full Code Here

Examples of redis.clients.jedis.Pipeline.discard()

    }

    @Test(expected = JedisDataException.class)
    public void pipelineDiscardShoudThrowJedisDataExceptionWhenNotInMulti() {
  Pipeline pipeline = jedis.pipelined();
  pipeline.discard();
    }

    @Test(expected = JedisDataException.class)
    public void pipelineMultiShoudThrowJedisDataExceptionWhenAlreadyInMulti() {
  Pipeline pipeline = jedis.pipelined();
View Full Code Here

Examples of redis.clients.jedis.Pipeline.discard()

    @Test
    public void testDiscardInPipeline() {
  Pipeline pipeline = jedis.pipelined();
  pipeline.multi();
  pipeline.set("foo", "bar");
  Response<String> discard = pipeline.discard();
  Response<String> get = pipeline.get("foo");
  pipeline.sync();
  discard.get();
  get.get();
    }
View Full Code Here

Examples of redis.clients.jedis.Transaction.discard()

    }

    @Test
    public void discard() {
  Transaction t = jedis.multi();
  String status = t.discard();
  assertEquals("OK", status);
    }

    @Test
    public void transactionResponse() {
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.