Examples of release()


Examples of org.apache.oozie.service.ZKLocksService.ZKLockToken.release()

        ZKLocksService zkls = new ZKLocksService();
        try {
            zkls.init(Services.get());
            ZKLockToken lock = (ZKLockToken) zkls.getWriteLock(path, 5000);
            assertTrue(zkls.getLocks().containsKey(path));
            lock.release();
            assertFalse(zkls.getLocks().containsKey(path));
        }
        finally {
            zkls.destroy();
        }
View Full Code Here

Examples of org.apache.pluto.container.PortletActionResponseContext.release()

            // This can either be a renderURL or an external URL (optionally containing a future renderURL as query parameter
            location = response.encodeRedirectURL(responseContext.getResponseURL());
        }
        finally
        {
            responseContext.release();
        }
        redirect(request, response, location);

        debugWithName("Portlet action done for: " + portletWindow.getPortletDefinition().getPortletName());
    }
View Full Code Here

Examples of org.apache.pluto.container.PortletEventResponseContext.release()

            responseContext.close();
            events = responseContext.getEvents();
        }
        finally
        {
            responseContext.release();
        }

        if (events != null && !events.isEmpty())
        {
            getContainerServices().getEventCoordinationService().processEvents(this, portletWindow, request, response, events);
View Full Code Here

Examples of org.apache.pluto.container.PortletRenderResponseContext.release()

            // Mark portlet interaction is completed: backend implementation can flush response state now
            responseContext.close();
        }
        finally
        {
            responseContext.release();
        }

        debugWithName("Portlet render done for: " + portletWindow.getPortletDefinition().getPortletName());
    }
View Full Code Here

Examples of org.apache.pluto.container.PortletResourceResponseContext.release()

            // Mark portlet interaction is completed: backend implementation can flush response state now
            responseContext.close();
        }
        finally
        {
            responseContext.release();
        }

        debugWithName("Portlet resource done for: " + portletWindow.getPortletDefinition().getPortletName());
    }
View Full Code Here

Examples of org.apache.pluto.internal.InternalPortletRequest.release()

            throw new ServletException(ex);
           
        } finally {
            request.removeAttribute(Constants.PORTLET_CONFIG);
            if (portletRequest != null) {
              portletRequest.release();
            }
        }
    }
}
View Full Code Here

Examples of org.apache.qpid.server.message.MessageInstance.release()

            Binary deliveryTag = entry.getKey();
            final MessageInstance queueEntry = entry.getValue();
            if(initialUnsettledMap == null || !initialUnsettledMap.containsKey(deliveryTag))
            {
                queueEntry.setRedelivered();
                queueEntry.release();
                _unsettledMap.remove(deliveryTag);
            }
            else if(initialUnsettledMap != null && (initialUnsettledMap.get(deliveryTag) instanceof Outcome))
            {
                Outcome outcome = (Outcome) initialUnsettledMap.get(deliveryTag);
View Full Code Here

Examples of org.apache.qpid.server.message.MessageReference.release()

        MessageReference ref = message.newReference();

        assertEquals(1, _store.getMessageCount());

        ref.release();

        assertEquals(0, _store.getMessageCount());
    }

    private ContentHeaderBody createPersistentContentHeader()
View Full Code Here

Examples of org.apache.qpid.server.queue.AMQMessage.release()

            // msgToRequeue.add(message);
            // }
            // else
            // {
            // release to allow it to be delivered
            msg.release(message.queue);

            // Without any details from the client about what has been processed we have to mark
            // all messages in the unacked map as redelivered.
            msg.setRedelivered(true);
View Full Code Here

Examples of org.apache.qpid.server.queue.QueueEntry.release()

            Binary deliveryTag = entry.getKey();
            final QueueEntry queueEntry = entry.getValue();
            if(initialUnsettledMap == null || !initialUnsettledMap.containsKey(deliveryTag))
            {
                queueEntry.setRedelivered();
                queueEntry.release();
                _unsettledMap.remove(deliveryTag);
            }
            else if(initialUnsettledMap != null && (initialUnsettledMap.get(deliveryTag) instanceof Outcome))
            {
                Outcome outcome = (Outcome) initialUnsettledMap.get(deliveryTag);
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.