Examples of returnObject()


Examples of org.apache.commons.pool.impl.GenericKeyedObjectPool.returnObject()

      assertEquals(0, keyedObjectPool.getNumActive(address));
      assertEquals(1, keyedObjectPool.getNumIdle(address));

      TcpTransport tcpConnection = (TcpTransport) keyedObjectPool.borrowObject(address);
      keyedObjectPool.returnObject(address, tcpConnection);//now we have a reference to the single connection in pool

      tcpConnection.destroy();

      assertEquals("v", rc.get("k"));
      assertEquals(0, keyedObjectPool.getNumActive(address));
View Full Code Here

Examples of org.apache.commons.pool.impl.GenericObjectPool.returnObject()

      }
      finally
      {
        if(container != null)
        {
          pool.returnObject(container);
        }
                _log.trace("Processed '%s' (%s, %s) in %dms", new Object[] {
                           message.getMethod(), message.getSession().getId(),
                           message.getCallId(), System.currentTimeMillis() - beginTime });
      }
View Full Code Here

Examples of org.exist.util.serializer.SerializerPool.returnObject()

                serializer.setProperties(outputProperties);
                serializer.setSAXHandlers(sax, sax);
                serializer.toSAX(resultSequence, 1, resultSequence.getItemCount(), false, false);
                   
              } finally {
                serializerPool.returnObject(sax);
              }
            }
           
    } catch (final PermissionDeniedException e) {
      if (getDefaultUser().equals(user)) {
View Full Code Here

Examples of org.jacorb.notification.util.AbstractObjectPool.returnObject()

            // expected
        }

        try
        {
            pool.returnObject(new Integer(10));
            fail();
        } catch (RuntimeException e)
        {
            // expected
        }
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.