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

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


        this.sendChannel = sendChannel;
        this.receiveChannel = receiveChannel;
    }

    public VmTransportChannel(int capacity) {
        this(new BoundedLinkedQueue(capacity), new BoundedLinkedQueue(capacity));
    }
View Full Code Here


    protected static synchronized int getNextThreadId() {
        return lastThreadId++;
    }

    protected Channel createChannel(int capacity) {
        return new BoundedLinkedQueue(capacity);
    }
View Full Code Here

        super(wireFormat);
        this.wireFormatLoader = new WireFormatLoader(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);
        }
        super.setCachingEnabled(true);
View Full Code Here

    protected void keepAlivePing(HttpServerTransportChannel channel) {
        /** TODO */
    }

    protected HttpServerTransportChannel createTransportChannel() {
        return new HttpServerTransportChannel(new BoundedLinkedQueue(10));
    }
View Full Code Here

    protected void keepAlivePing(HttpServerTransportChannel channel) {
        /** TODO */
    }

    protected HttpServerTransportChannel createTransportChannel() {
        return new HttpServerTransportChannel(new BoundedLinkedQueue(10));
    }
View Full Code Here

    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

    public VmTransportChannel() {
        this(1000);
    }

    public VmTransportChannel(int capacity) {
        this(new BoundedLinkedQueue(capacity), new BoundedLinkedQueue(capacity));
    }
View Full Code Here

        super(wireFormat);
        this.wireFormatLoader = new WireFormatLoader(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();
        setUseAsyncSend(useAsyncSend);
        super.setCachingEnabled(true);
    }
View Full Code Here

        this.sendChannel = sendChannel;
        this.receiveChannel = receiveChannel;
    }

    public VmTransportChannel(int capacity) {
        this(new BoundedLinkedQueue(capacity), new BoundedLinkedQueue(capacity));
    }
View Full Code Here

    protected static synchronized int getNextThreadId() {
        return lastThreadId++;
    }

    protected Channel createChannel(int capacity) {
        return new BoundedLinkedQueue(capacity);
    }
View Full Code Here

TOP

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

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.