Package org.codehaus.activemq.util

Examples of org.codehaus.activemq.util.IdGenerator


    /**
     * Construct basic helpers
     */
    protected JRMSTransportChannel(WireFormat wireFormat) {
        this.wireFormat = wireFormat;
        idGenerator = new IdGenerator();
        channelId = idGenerator.generateId();
        closed = new SynchronizedBoolean(false);
        started = new SynchronizedBoolean(false);
        lock = new Object();
    }
View Full Code Here


    protected ActiveMQConnection(ActiveMQConnectionFactory factory, String theUserName, String thePassword) {
        this.factory = factory;
        this.userName = theUserName;
        this.password = thePassword;
        this.clientIdGenerator = new IdGenerator();
        this.packetIdGenerator = new IdGenerator();
        this.consumerIdGenerator = new IdGenerator();
        this.sessionIdGenerator = new IdGenerator();
        this.consumerNumberGenerator = new SynchronizedInt(0);
        this.sessions = new CopyOnWriteArrayList();
        this.messageDispatchers = new CopyOnWriteArrayList();
        this.connectionConsumers = new CopyOnWriteArrayList();
        this.connectionMetaData = new ActiveMQConnectionMetaData();
View Full Code Here

    private JMSProducerStatsImpl stats;

    protected ActiveMQMessageProducer(ActiveMQSession theSession, ActiveMQDestination destination) throws JMSException {
        this.session = theSession;
        this.defaultDestination = destination;
        this.idGenerator = new IdGenerator();
        this.disableMessageID = false;
        this.disableMessageTimestamp = false;
        this.defaultDeliveryMode = Message.DEFAULT_DELIVERY_MODE;
        this.defaultPriority = Message.DEFAULT_PRIORITY;
        this.defaultTimeToLive = Message.DEFAULT_TIME_TO_LIVE;
View Full Code Here

                                                                                this.getMQServer(),
                                                                                this.getTopic(),
                                                                                this.getEmbeddedBroker());

        if (this.getDurable()) {
            IdGenerator idGenerator = new IdGenerator();
            connection.setClientID(idGenerator.generateId());
        }

        Session session = ServerConnectionFactory.createSession(connection, this.getTransacted());
        Destination destination = ServerConnectionFactory.createDestination(session,
                                                                            subject,
View Full Code Here

        Connection connection = ServerConnectionFactory.createConnectionFactory(this.getURL(),
                                                                                this.getMQServer(),
                                                                                this.getTopic(),
                                                                                this.getEmbeddedBroker());
        if (this.getDurable()) {
            IdGenerator idGenerator = new IdGenerator();
            connection.setClientID(idGenerator.generateId());
        }
        //start connection before receiving messages.
        connection.start();

        Session session = ServerConnectionFactory.createSession(connection, this.getTransacted());
View Full Code Here

    /**
     * Construct basic helpers
     */
    protected JRMSTransportChannel(WireFormat wireFormat) {
        this.wireFormat = wireFormat;
        idGenerator = new IdGenerator();
        channelId = idGenerator.generateId();
        closed = new SynchronizedBoolean(false);
        started = new SynchronizedBoolean(false);
        lock = new Object();
    }
View Full Code Here

    private DiscoveryAgent discoveryAgent;
    private Map localDiscoveryDetails;


    public BrokerContainerImpl() {
        this(new IdGenerator().generateId());
    }
View Full Code Here

    /**
     * Default Constructor of BrokerClientImpl
     */
    public BrokerClientImpl() {
        this.packetIdGenerator = new IdGenerator();
        this.closed = new SynchronizedBoolean(false);
        this.started = new SynchronizedBoolean(false);
        this.activeConsumers = new HashSet();
        this.consumers = new CopyOnWriteArrayList();
        this.producers = new CopyOnWriteArrayList();
View Full Code Here

  /**
   * Constructs a new KeepAliveDaemon which will send KeepAlive packets
   * throught the wrapped channel.
   */
  protected KeepAliveDaemon() {
    this.packetIdGenerator = new IdGenerator();
  }
View Full Code Here

    private boolean reuseMessageId; //hint to reuse the same messageId - if already set

    protected ActiveMQMessageProducer(ActiveMQSession theSession, ActiveMQDestination destination) throws JMSException {
        this.session = theSession;
        this.defaultDestination = destination;
        this.idGenerator = new IdGenerator();
        this.disableMessageID = false;
        this.disableMessageTimestamp = false;
        this.defaultDeliveryMode = Message.DEFAULT_DELIVERY_MODE;
        this.defaultPriority = Message.DEFAULT_PRIORITY;
        this.defaultTimeToLive = Message.DEFAULT_TIME_TO_LIVE;
View Full Code Here

TOP

Related Classes of org.codehaus.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.