Examples of release()


Examples of com.facebook.presto.spi.block.LazySliceArrayBlock.release()

    {
        TestLazySliceArrayBlockLoader loader = new TestLazySliceArrayBlockLoader(null);
        LazySliceArrayBlock block = new LazySliceArrayBlock(10, loader);

        // release the block
        block.release();

        // verify release was called
        assertTrue(loader.released);

        // verify methods accessing the data throw IllegalStateException
View Full Code Here

Examples of com.fasterxml.jackson.core.util.ByteArrayBuilder.release()

            throw e;
        } catch (IOException e) { // shouldn't really happen, but is declared as possibility so:
            throw JsonMappingException.fromUnexpectedIOE(e);
        }
        byte[] result = bb.toByteArray();
        bb.release();
        return result;
    }

    /*
    /**********************************************************
 
View Full Code Here

Examples of com.firefly.net.buffer.SocketSendBufferPool.SendBuffer.release()

                        }
                    }

                    if (buf.finished()) {
                        // Successful write - proceed to the next message.
                        buf.release();
                        session.resetCurrentWriteAndWriteBuffer();
//                        obj = null;
//                        buf = null;
                    } else {
                        // Not written fully - perhaps the kernel buffer is
View Full Code Here

Examples of com.force.sdk.jpa.ForceManagedConnection.release()

        } catch (NucleusException ne) {
            throw ne;
        } catch (Exception e) {
            throw new NucleusException(e.getMessage(), e);
        } finally {
            mconn.release();
        }
    }

    private QueryCompilation newDummyQueryCompilation() {
        return new QueryCompilation(getCandidateClass(), null, null, null, null, null, null, null, null, null);
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.flowgraphics.svg.SvgBench.release()

    }
    svg.setWidth(maxX+30);
    svg.setHight(maxY+70);
    svg.setMhight(minY);
    svg.setMwidth(minX);
    return svg.release();

  }
 
 
View Full Code Here

Examples of com.gentics.cr.lucene.facets.taxonomy.taxonomyaccessor.TaxonomyAccessor.release()

        status.setCurrentStatusString("Finished job.");
        int objectCount = status.getObjectsDone();
        log.debug("Indexed " + objectCount + " objects...");

        if (taxonomyAccessor != null && taxonomyWriter != null) {
          taxonomyAccessor.release(taxonomyWriter);
        }

        if (indexAccessor != null && indexWriter != null) {
          indexAccessor.release(indexWriter);
        }
View Full Code Here

Examples of com.gentics.cr.lucene.indexaccessor.IndexAccessor.release()

      }

      return list;
    } finally {
      if (ia != null && indexSearcher != null) {
        ia.release(indexSearcher);
      }
    }
  }

  /**
 
View Full Code Here

Examples of com.google.code.http4j.ConnectionManager.release()

    final ConnectionManager pool = new ConnectionPool();
    pool.setMaxConnectionsPerHost(1);
    try {
      Connection connection = pool.acquire(host);
      Assert.assertNotNull(connection);
      pool.release(connection);
      connection = pool.acquire(host);
      Assert.assertNotNull(connection);
      ExecutorService service = Executors.newSingleThreadExecutor();
      service.invokeAny(Collections.singleton(new Callable<Connection>() {
        @Override
View Full Code Here

Examples of com.google.code.http4j.impl.conn.ConnectionPool.release()

    final ConnectionManager pool = new ConnectionPool();
    pool.setMaxConnectionsPerHost(1);
    try {
      Connection connection = pool.acquire(host);
      Assert.assertNotNull(connection);
      pool.release(connection);
      connection = pool.acquire(host);
      Assert.assertNotNull(connection);
      ExecutorService service = Executors.newSingleThreadExecutor();
      service.invokeAny(Collections.singleton(new Callable<Connection>() {
        @Override
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.ISessionManager.release()

    ISessionManager sessionManagerUser = getSessionManagerUser(username);
    ISession sessionUser = sessionManagerUser.getSession(docbase);
    try {
      authorized = getAuthorizedDocids(docids, query, sessionUser);
    } finally {
      sessionManagerUser.release(sessionUser);
      logger.finest("user session released");
    }
    return authorized;
  }
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.