Package org.apache.activemq.util

Examples of org.apache.activemq.util.IdGenerator


    }
   
    protected synchronized IdGenerator getClientIdGenerator() {
        if (clientIdGenerator == null) {
            if (clientIDPrefix != null) {
                clientIdGenerator = new IdGenerator(clientIDPrefix);
            }
            else {
                clientIdGenerator = new IdGenerator();
            }
        }
        return clientIdGenerator;
    }
View Full Code Here


    private Map<String, AbstractPullPoint> pullPoints;

    public AbstractCreatePullPoint(String name) {
        super(name);
        idGenerator = new IdGenerator();
        pullPoints = new ConcurrentHashMap<String, AbstractPullPoint>();
    }
View Full Code Here

    private Map<String,AbstractPublisher> publishers;
    private Map<String,AbstractSubscription> subscriptions;

  public AbstractNotificationBroker(String name) {
    super(name);
        idGenerator = new IdGenerator();
        subscriptions = new ConcurrentHashMap<String,AbstractSubscription>();
        publishers = new ConcurrentHashMap<String, AbstractPublisher>();
  }
View Full Code Here

        private Subscribe request;
        private SubscribeResponse response;

        public WSNSubscriptionEndpoint(Subscribe request) throws DeploymentException {
            this.service = new QName("http://servicemix.org/wsnotification", "Subscription");
            this.endpoint = new IdGenerator().generateSanitizedId();
            this.request = request;
        }
View Full Code Here

        private CreatePullPoint request;
        private CreatePullPointResponse response;

        public WSNPullPointEndpoint(CreatePullPoint request) throws DeploymentException {
            this.service = new QName("http://servicemix.org/wsnotification", "Subscription");
            this.endpoint = new IdGenerator().generateSanitizedId();
            this.request = request;
        }
View Full Code Here

        private RegisterPublisher request;
        private RegisterPublisherResponse response;
       
        public WSNPublisherEndpoint(RegisterPublisher request) {
            this.service = new QName("http://servicemix.org/wsnotification", "Publisher");
            this.endpoint = new IdGenerator().generateSanitizedId();
            this.request = request;
        }
View Full Code Here

public class ActiveMQUUIDService implements UUIDService {

    private IdGenerator idGenerator;
   
    public ActiveMQUUIDService() {
        idGenerator = new IdGenerator();
    }
View Full Code Here

    }

    protected synchronized IdGenerator getClientIdGenerator() {
        if (clientIdGenerator == null) {
            if (clientIDPrefix != null) {
                clientIdGenerator = new IdGenerator(clientIDPrefix);
            } else {
                clientIdGenerator = new IdGenerator();
            }
        }
        return clientIdGenerator;
    }
View Full Code Here

            // Send the remove request
            Message remove = session.createMessage();
            remove.setStringProperty(ScheduledMessage.AMQ_SCHEDULER_ACTION,
                    ScheduledMessage.AMQ_SCHEDULER_ACTION_REMOVEALL);
            remove.setStringProperty(ScheduledMessage.AMQ_SCHEDULED_ID, new IdGenerator().generateId());
            producer.send(remove);
        } catch(Exception e) {
            fail("Caught unexpected exception during remove of unscheduled message.");
        }
    }
View Full Code Here

    }

    protected synchronized IdGenerator getClientIdGenerator() {
        if (clientIdGenerator == null) {
            if (clientIDPrefix != null) {
                clientIdGenerator = new IdGenerator(clientIDPrefix);
            } else {
                clientIdGenerator = new IdGenerator();
            }
        }
        return clientIdGenerator;
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.util.IdGenerator

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.