Package EDU.oswego.cs.dl.util.concurrent

Examples of EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean


    /**
     * Construct basic helpers
     */
    protected GTransportChannel(WireFormat wireFormat, ThreadPool tp) {
        this.wireFormat = wireFormat;
        closed = new SynchronizedBoolean(false);
        started = new SynchronizedBoolean(false);
        dispatchLatch = new Latch();
        threadPool = tp;
    }
View Full Code Here



    public JRMSTransportServerChannel(WireFormat wireFormat, URI bindAddr) {
        this.wireFormat = wireFormat;
        this.bindAddress = bindAddr;
        started = new SynchronizedBoolean(false);
        log.info("JRMS ServerChannel at: " + bindAddress);
    }
View Full Code Here

    /**
     * Construct basic helpers
     */
    protected TcpTransportChannel(WireFormat wireFormat) {
        this.wireFormat = wireFormat;
        closed = new SynchronizedBoolean(false);
        started = new SynchronizedBoolean(false);
        // there's not much point logging all exceptions, lets just keep a few around
        exceptionsList = new BoundedLinkedQueue(10);
        outboundLock = new Object();
        if (useAsyncSend) {
            executor = new PooledExecutor(new BoundedBuffer(1000), 1);
View Full Code Here

     */
    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

        this.wireFormat = wireFormat;
        this.sm = selectorManager;
        this.tp = threadPool;
        this.cp = clockPool;

        closed = new SynchronizedBoolean(false);
        startLatch = new Latch();

/*
        ControlServerProtocolStack templateStack = new ControlServerProtocolStack();
*/
 
View Full Code Here

    private static final Log log = LogFactory.getLog(VmTransportServerChannel.class);
    private SynchronizedBoolean started;
    private URI bindAddress;

    public VmTransportServerChannel(URI bindAddr) {
        started = new SynchronizedBoolean(false);
        this.bindAddress = bindAddr;
        log.info("Listening for connections at: " + bindAddress);
    }
View Full Code Here

        this.consumerNumberGenerator = new SynchronizedInt(0);
        this.sessions = new CopyOnWriteArrayList();
        this.messageDispatchers = new CopyOnWriteArrayList();
        this.connectionConsumers = new CopyOnWriteArrayList();
        this.connectionMetaData = new ActiveMQConnectionMetaData();
        this.closed = new SynchronizedBoolean(false);
        this.started = new SynchronizedBoolean(false);
        this.startTime = System.currentTimeMillis();
        this.prefetchPolicy = new ActiveMQPrefetchPolicy();
        this.boundedQueueManager = new MemoryBoundedQueueManager(clientID, DEFAULT_CONNECTION_MEMORY_LIMIT);
        this.boundedQueueManager.addCapacityEventListener(this);
        boolean transactional = this instanceof XAConnection;
View Full Code Here

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

    protected URI bindAddress;
    private SynchronizedBoolean started;

    public UdpTransportServerChannel(URI bindAddr) {
        started = new SynchronizedBoolean(false);
        this.bindAddress = bindAddr;
        log.info("ServerChannel at: " + bindAddress);
    }
View Full Code Here

    private static int lastThreadId = 0; // To number the threads.

    public VmTransportChannel(Channel sendChannel, Channel receiveChannel) {
        this.sendChannel = sendChannel;
        this.receiveChannel = receiveChannel;
        closed = new SynchronizedBoolean(false);
        started = new SynchronizedBoolean(false);
    }
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean

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.