Examples of release()


Examples of org.apache.uima.cas.CAS.release()

      cas.setDocumentText("Line one\nLine two\nLine three");
      CasIterator iter = ae.processAndOutputNewCASes(cas);
      assertTrue(iter.hasNext());
      CAS outCas = iter.next();
      assertEquals("Line one", outCas.getDocumentText());
      outCas.release();
      assertTrue(iter.hasNext());
      outCas = iter.next();
      assertEquals("Line two", outCas.getDocumentText());
      outCas.release();
      assertTrue(iter.hasNext());
View Full Code Here

Examples of org.apache.uima.jcas.JCas.release()

      }

      mPos = breakAt;
      return jcas;
    } catch (Exception e) {
      jcas.release();
      throw new AnalysisEngineProcessException(e);
    }
  }

}
View Full Code Here

Examples of org.apache.ws.util.lock.Lock.release()

                m_cache.update( resource );
            }
        }
        finally
        {
            lock.release();
        }

        return resource;
    }
View Full Code Here

Examples of org.apache.xml.dtm.DTMManager.release()

        this.transformNode(dtm.getDocument());
      }
      finally
      {
        if (shouldRelease)
          mgr.release(dtm, hardDelete);
      }

      // Kick off the parse.  When the ContentHandler gets
      // the startDocument event, it will call transformNode( node ).
      // reader.parse( xmlSource );
View Full Code Here

Examples of org.apache.xml.dtm.ref.DTMManagerDefault.release()

    catch(SQLException e)
    {
      if ((doc != null) && (mgrDefault != null))
      {
        doc.closeOnError();
        mgrDefault.release(doc, true);
      }
      buildErrorDocument(exprContext, e);
      return null;
    }
    catch (Exception e)
View Full Code Here

Examples of org.apache.xpath.XPathContext.release()

               "\tdtm="+dtm.getDocumentBaseURI());
      // NOTE: This will work because this is _NOT_ a shared DTM, and thus has
      // only a single Document node. If it could ever be an RTF or other
     // shared DTM, this would require substantial rework.
       xctxt.getSourceTreeManager().removeDocumentFromCache(dtm.getDocument());
       xctxt.release(dtm,false);
     }
      }
    }
    finally
    {
View Full Code Here

Examples of org.asteriskjava.fastagi.internal.AgiConnectionHandler.release()

            }
            catch (RejectedExecutionException e)
            {
                logger.warn("Execution was rejected by pool. Try to increase the pool size.");
                // release resources like closing the socket if execution was rejected due to the pool size
                connectionHandler.release();
            }
        }
        logger.info("AgiServer shut down.");
    }
View Full Code Here

Examples of org.asteriskjava.fastagi.internal.AsyncAgiConnectionHandler.release()

            }
            catch (RejectedExecutionException e)
            {
                logger.warn("Execution was rejected by pool. Try to increase the pool size.");
                // release resources if execution was rejected due to the pool size
                connectionHandler.release();
            }
        }
        else
        {
            connectionHandler = getConnectionHandler(connection, channelName);
View Full Code Here

Examples of org.asteriskjava.fastagi.internal.FastAgiConnectionHandler.release()

            }
            catch (RejectedExecutionException e)
            {
                logger.warn("Execution was rejected by pool. Try to increase the pool size.");
                // release resources like closing the socket if execution was rejected due to the pool size
                connectionHandler.release();
            }
        }
        logger.info("AgiServer shut down.");
    }
View Full Code Here

Examples of org.atomojo.app.db.DB.release()

                        }
                     }
                     out.write("</row>\n");
                  }
               } finally {
                  db.release(dbConnection);
               }
            } catch (SQLException ex) {
               throw new IOException(ex.getMessage());
            }
            out.write("</table>");
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.