Examples of release()


Examples of oracle.toplink.essentials.internal.helper.ConcurrencyManager.release()

        manager.acquire();
    }

    protected void releaseLock(String seqName) {
        ConcurrencyManager manager = (ConcurrencyManager)locks.get(seqName);
        manager.release();
    }

    protected Sequence getSequence(Class cls) {
        //** should check here that sequencing is used?
        String seqName = getOwnerSession().getDescriptor(cls).getSequenceNumberName();
View Full Code Here

Examples of oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.release()

        // Clean up by releasing the uow and client session
        if (uow.shouldResumeUnitOfWorkOnTransactionCompletion() && getTransactionController().canMergeUnitOfWork_impl(status)){
            uow.synchronizeAndResume();
            uow.setSynchronized(false);
        }else{
            uow.release();
            // Release the session explicitly
            if (getSession().isClientSession()) {
                getSession().release();
            }
        }
View Full Code Here

Examples of oracle.toplink.sessions.Session.release()

    Session session = txObject.getSessionHolder().getSession();
    if (logger.isDebugEnabled()) {
      logger.debug("Releasing TopLink Session [" + session + "] after transaction");
    }
    try {
      session.release();
    }
    catch (Throwable ex) {
      // just log it, to keep a transaction-related exception
      logger.debug("Could not release TopLink Session after transaction", ex);
    }
View Full Code Here

Examples of oracle.toplink.sessions.UnitOfWork.release()

      }
      return result;
    }
    finally {
      if (newUnitOfWork) {
        unitOfWork.release();
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.ajax4jsf.context.AjaxContext.release()

          }
        }
      } catch (IOException e) {
        throw new FacesException(e);
      } finally {
        ajaxContext.release();
      }
      // ajaxContext.processHeadResources(context);
    } else if (phaseId == PhaseId.RESTORE_VIEW) {

      UIViewRoot viewRoot = context.getViewRoot();
View Full Code Here

Examples of org.ajax4jsf.resource.ResourceContext.release()

        // sendResource(resource, request, response,
        // resourceDataForKey);
      }

    } finally {
      resourceContext.release();
    }
  }

  /**
   * @param resource
View Full Code Here

Examples of org.antlr.v4.runtime.CharStream.release()

  @Test(expected = IllegalStateException.class)
  public void testMarkReleaseOutOfOrder() {
    CharStream input = createStream("");
    int m1 = input.mark();
    int m2 = input.mark();
    input.release(m1);
  }

  /**
   * The {@link IntStream} interface does not specify the behavior when a mark
   * is released twice, but {@link UnbufferedCharStream} handles this case by
View Full Code Here

Examples of org.apache.abdera.protocol.client.ClientResponse.release()

      InputStream in = response.getInputStream();
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      int n = -1;
      while ((n = in.read()) != -1) { out.write(n); }
      out.flush();
      response.release();
      String auth = new String(out.toByteArray());
      return auth.split("\n")[2].replaceAll("Auth=", "auth=");
    } catch (Exception e) {}
    return null;
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.provider.ProviderManager.release()

      } catch (Exception ex) {
        logger.error("Error outputting error", ex);
        response.sendError(500);
      }
    } finally {
      manager.release(provider);
    }
  }
 
  protected boolean preconditions(
    Provider provider,
View Full Code Here

Examples of org.apache.activemq.apollo.broker.store.StoreUOW.release()

                                cb.run();
                            }
                        });
                    }
                }));
                uow.release();
            }

            @Override
            public void destroy(final Task cb) {
                StoreUOW uow = store.create_uow();
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.