Package org.rioproject.impl.service

Examples of org.rioproject.impl.service.ServiceResource


     * object that has a provision type of DYNAMIC
     *
     * @param request The ProvisionRequest
     */
    public void dispatch(final ProvisionRequest request) {
        ServiceResource resource = Selector.acquireServiceResource(request, selector);
        dispatch(request, resource, 0);
    }
View Full Code Here


    public EventRegistration register(Object eventSource,
                                      RemoteEventListener listener,
                                      MarshalledObject handback,
                                      long duration) throws LeaseDeniedException {
        EventRegistrationResource resource = new EventRegistrationResource(listener, handback);
        ServiceResource sr = new ServiceResource(resource);
        Lease lease = landlord.newLease(sr, duration);
        EventRegistration registration = new EventRegistration(descriptor.eventID, eventSource, lease, sequenceNumber);
        if(logger.isTraceEnabled())
            logger.trace("Total registrations for {} {}", descriptor.toString(), getRegistrantCount());
        return (registration);
View Full Code Here

TOP

Related Classes of org.rioproject.impl.service.ServiceResource

Copyright © 2018 www.massapicom. 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.