Examples of discard()


Examples of org.mvel2.util.ExecutionStack.discard()

            Field field;
            if (instruction.cache == null) {
              instruction.cache = field = ((Class) stack.pop()).getField(instruction.expr);
            }
            else {
              stack.discard();
              field = (Field) instruction.cache;
            }

            stack.push(field.get(stack.pop()));
          }
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.discard()

            unitOfWork.complete();
        }
        finally
        {
            unitOfWork.discard();
        }
    }

    @Test
    public void givenCompositeWithPropertyConstraintsWhenInstantiatedThenPropertiesWork()
View Full Code Here

Examples of org.qi4j.spi.entitystore.EntityStoreUnitOfWork.discard()

                            break;
                    }
                }
            }

            uow.discard();

            if( bulkBuilder.numberOfActions() > 0 )
            {

                // Execute bulk actions
View Full Code Here

Examples of org.rioproject.impl.container.DiscardManager.discard()

                logger.trace("[{}] Discard the service", ServiceElementUtil.getLoggingName(context));
            ServiceBeanManager serviceBeanManager = context.getServiceBeanManager();
            if(serviceBeanManager != null) {
                DiscardManager discardMgr = serviceBeanManager.getDiscardManager();
                if (discardMgr != null) {
                    discardMgr.discard();
                } else {
                    logger.warn("[{}] DiscardManager is null, unable to discard", ServiceElementUtil.getLoggingName(context));
                }
            } else {
                if(logger.isTraceEnabled())
View Full Code Here

Examples of org.sat4j.specs.IOptimizationProblem.discard()

                        + (System.currentTimeMillis() - getBeginTime())
                        / 1000.0);
                getLogWriter().println(
                        CURRENT_OPTIMUM_VALUE_PREFIX
                                + optproblem.calculateObjective());
                optproblem.discard();
            }
            if (isSatisfiable) {
                setExitCode(ExitCode.OPTIMUM_FOUND);
            } else {
                setExitCode(ExitCode.UNSATISFIABLE);
View Full Code Here

Examples of org.springframework.data.redis.core.StringRedisTemplate.discard()

    template.execute(new SessionCallback<Object>() {
      @SuppressWarnings("rawtypes")
      public Object execute(RedisOperations operations) {
        checkConnection(template, stringConn);
        template.discard();
        assertSame(template, operations);
        checkConnection(template, stringConn);
        return null;
      }
    });
View Full Code Here

Examples of org.voltcore.utils.DBBPool.BBContainer.discard()

            assertEquals(cont.b().remaining(), 1024 * 1024 * 2);
            while (cont.b().remaining() > 15) {
                assertEquals(cont.b().getLong(), ii);
                cont.b().getLong();
            }
            cont.discard();
        }
    }

    @Test
    public void testTruncatorWithEmptyBufferReturn() throws Exception {
View Full Code Here

Examples of org.voltcore.utils.DBBPool.MBBContainer.discard()

                    if (lastSegmentIndex != null) {
                        break;
                    }
                } finally {
                    fc.close();
                    readBufferC.discard();
                }
            }
        } finally {
            decompressionBuffer.discard();
        }
View Full Code Here

Examples of org.voltdb.messaging.FastSerializer.discard()

                    buf.flip();
                    fser.write(buf);
                }
            }
        } catch (final IOException exception) {
            fser.discard();
            throw new RuntimeException(exception);
        }

        // if inputDepIds is null, make a bunch of dummies
        long[] inputDepIds = inputDepIdsIn;
View Full Code Here

Examples of org.voltdb.utils.DBBPool.BBContainer.discard()

                        }
                        if (validate && saveFile.getCompleted()) {
                            while (saveFile.hasMoreChunks()) {
                                BBContainer cont = saveFile.getNextChunk();
                                if (cont != null) {
                                    cont.discard();
                                }
                            }
                        }
                        partitionIds.removeAll(saveFile.getCorruptedPartitionIds());
                        Snapshot s = snapshots.get(saveFile.getCreateTime());
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.