Package com.volantis.map.agent

Examples of com.volantis.map.agent.AgentRequestId


        lock = new Object();
    }

    // javadoc inherited
    public AgentRequestId requestURL(Request request, ResponseCallback callback) {
        AgentRequestId requestId = new DefaultAgentRequestId();
        AgentRequest agentRequest = new AgentRequest(request, callback);
        synchronized (this) {
            requestQueue.add(requestId);
            requestMap.put(requestId, agentRequest);
        }
View Full Code Here


    // javadoc inherited
    public void waitForComplete() throws MediaAgentException {
        synchronized (lock) {
            for (Iterator iter = requestQueue.iterator(); iter.hasNext(); ) {
                final AgentRequestId requestId = (AgentRequestId) iter.next();
                final AgentRequest agentRequest =
                    (AgentRequest) requestMap.get(requestId);
                if (agentRequest.getState().equals(AgentRequestState.PENDING)) {
                    waitForComplete(requestId);
                }
View Full Code Here

    // javadoc inherited
    public void waitForComplete(final Set requestIds) throws MediaAgentException {
        synchronized (lock) {
            for (Iterator iter = requestIds.iterator(); iter.hasNext(); ) {
                final AgentRequestId requestId = (AgentRequestId) iter.next();
                final AgentRequest agentRequest =
                    (AgentRequest) requestMap.get(requestId);
                if (agentRequest.getState().equals(AgentRequestState.PENDING)) {
                    waitForComplete(requestId);
                }
View Full Code Here

TOP

Related Classes of com.volantis.map.agent.AgentRequestId

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.