Package edu.emory.mathcs.backport.java.util.concurrent

Examples of edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap$EntrySet


    public Registry() {
        this.componentRegistry = new ComponentRegistry(this);
        this.endpointRegistry = new EndpointRegistry(this);
        this.subscriptionRegistry = new SubscriptionRegistry(this);
        this.serviceAssemblyRegistry = new ServiceAssemblyRegistry(this);
        this.serviceUnits = new ConcurrentHashMap();
        this.pendingAssemblies = new CopyOnWriteArrayList();
        this.sharedLibraries = new ConcurrentHashMap();
        this.pendingComponents = new CopyOnWriteArrayList();
    }
View Full Code Here


     *
     * @param cr
     */
    public EndpointRegistry(Registry registry) {
        this.registry = registry;
        this.endpointMBeans = new ConcurrentHashMap();
        this.internalEndpoints = new ConcurrentHashMap();
        this.externalEndpoints = new ConcurrentHashMap();
        this.linkedEndpoints = new ConcurrentHashMap();
        this.interfaceConnections = new ConcurrentHashMap();
        this.endpointProcessors = getEndpointProcessors();
    }
View Full Code Here

                }
            } else {
                throw new IllegalStateException("No destination provided");
            }
        }
        pendingMessages = new ConcurrentHashMap();
        consumer = session.createConsumer(destination);
        consumer.setMessageListener(this);
    }
View Full Code Here

    private Set componentsAsConsumer;
    private boolean displayComponents = true;
   
    public DotViewFlowListener() {
        setFile("ServiceMixFlow.dot");
        flow = new ConcurrentHashMap();
        flowLinks = new CopyOnWriteArraySet();
        usedComponents = new CopyOnWriteArraySet();
        componentsAsConsumer = new CopyOnWriteArraySet();
    }
View Full Code Here

   
    protected Map createSource(String name) {
        synchronized (flow) {
            Map componentFlow = (Map) flow.get(name);
            if (componentFlow == null) {
                componentFlow = new ConcurrentHashMap();
                flow.put(name, componentFlow);
            }
            return componentFlow;
        }
    }
View Full Code Here

    protected int suspentionTime = 60000;
       
    public ConsumerProcessor(HttpEndpoint endpoint) {
        this.endpoint = endpoint;
        this.soapHelper = new SoapHelper(endpoint);
        this.locks = new ConcurrentHashMap();
        this.exchanges = new ConcurrentHashMap();
        this.suspentionTime = getConfiguration().getConsumerProcessorSuspendTime();
    }
View Full Code Here

   
    public void init() throws Exception {
        if (configuration == null) {
            configuration = new HttpConfiguration();
        }
        managedContexts = new ConcurrentHashMap();
    }
View Full Code Here

    private Protocol protocol;
   
    public ProviderProcessor(HttpEndpoint endpoint) {
        this.endpoint = endpoint;
        this.soapHelper = new SoapHelper(endpoint);
        this.methods = new ConcurrentHashMap();
    }
View Full Code Here

    protected ThreadLocal correlationId;

    public AsyncBaseLifeCycle() {
        this.running = new AtomicBoolean(false);
        this.polling = new AtomicBoolean(false);
        this.processors = new ConcurrentHashMap();
        this.correlationId = new ThreadLocal();
    }
View Full Code Here

        // final int numMessages = 1;
        final int numMessages = NUM_MESSAGES;
        final SenderComponent sender = new SenderComponent();
        sender.setResolver(new ServiceNameEndpointResolver(ReceiverComponent.SERVICE));
        final Receiver receiver;
        final Map delivered = new ConcurrentHashMap();
        if (syncReceive) {
            receiver = new ReceiverComponent() {
                public void onMessageExchange(MessageExchange exchange) throws MessagingException {
                    try {
                        if (delivered.get(exchange.getExchangeId()) == null) {
                            System.err.println("Message delivery rolled back: " + exchange.getExchangeId());
                            delivered.put(exchange.getExchangeId(), Boolean.TRUE);
                            tm.setRollbackOnly();
                        } else {
                            System.err.println("Message delivery accepted: " + exchange.getExchangeId());
                            super.onMessageExchange(exchange);
                        }
                    } catch (Exception e) {
                        throw new MessagingException(e);
                    }
                }
            };
        } else {
            receiver = new AsyncReceiverPojo() {
                public void onMessageExchange(MessageExchange exchange) throws MessagingException {
                    try {
                        if (delivered.get(exchange.getExchangeId()) == null) {
                            System.err.println("Message delivery rolled back: " + exchange.getExchangeId());
                            delivered.put(exchange.getExchangeId(), Boolean.TRUE);
                            tm.setRollbackOnly();
                            exchange.setStatus(ExchangeStatus.DONE);
                            getContext().getDeliveryChannel().send(exchange);
                        } else {
                            System.err.println("Message delivery accepted: " + exchange.getExchangeId());
View Full Code Here

TOP

Related Classes of edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap$EntrySet

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.