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

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


    public MsgQueue(String aName) {
        if ( null == aName ) {
            throw new IllegalArgumentException("Name is required.");
        }
        name = aName;
        queue = new LinkedQueue();
    }
View Full Code Here


    public static JournalPersistenceAdapter newInstance(File directory) throws IOException, JMSException {
        return new JournalPersistenceAdapter(directory, JdbmPersistenceAdapter.newInstance(directory), new DefaultWireFormat());
    }

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

     * one.
     *
     * @param maxSize Maximum size of the work executor pool.
     */
    public WorkExecutorPoolImpl(int maxSize) {
        pooledExecutor = new PooledExecutor(new LinkedQueue(), maxSize);
        pooledExecutor.setMinimumPoolSize(maxSize);
        pooledExecutor.waitWhenBlocked();
    }
View Full Code Here

    ClockDaemon clockDaemon;
    private Object clockTicket;
    private JournalTransactionStore transactionStore;

    public JournalPersistenceAdapter() {
        checkpointExecutor = new QueuedExecutor(new LinkedQueue());
        checkpointExecutor.setThreadFactory(new ThreadFactory() {
            public Thread newThread(Runnable runnable) {
                Thread answer = new Thread(runnable, "Checkpoint Worker");
                answer.setDaemon(true);
                answer.setPriority(Thread.MAX_PRIORITY);
View Full Code Here

    private final AsynchChannel asynchChannel;   
    private final Channel buffer;

    static public SynchChannel adapt(org.activeio.Channel channel) {
        return adapt(channel, new LinkedQueue());
    }
View Full Code Here

   
    /**
     * @deprecated {@see #adapt(AsynchChannel)}
     */
    public AsynchToSynchChannelAdapter(AsynchChannel asynchChannel) {
        this(asynchChannel, new LinkedQueue());
    }
View Full Code Here

    private final AsynchChannelServer asynchChannelServer;   
    private final EDU.oswego.cs.dl.util.concurrent.Channel acceptBuffer;
   
    static public SynchChannelServer adapt(ChannelServer channel) {
        return adapt(channel, new LinkedQueue());
    }
View Full Code Here

   
    /**
     * @deprecated {@see #adapt(ChannelServer)}
     */
    public AsynchToSynchChannelServerAdapter(AsynchChannelServer asynchChannelServer) {
        this(asynchChannelServer,new LinkedQueue());
    }
View Full Code Here

        if (useQueueing) {
            if (queueSize > 0) {
                m_executor = new PooledExecutor(new BoundedBuffer(queueSize));
            } else {
                m_executor = new PooledExecutor(new LinkedQueue());
            }
        } else {
            m_executor = new PooledExecutor();
        }
View Full Code Here

      {
         // Create a local tx
         currentTxId = parent.getResourceManager().createLocalTx();
      }

      executor = new ClearableQueuedExecutor(new LinkedQueue());

      clientAckList = new ArrayList();

      // TODO could optimise this to use the same map of callbackmanagers (which holds refs
      // to callbackhandlers) in the connection, instead of maintaining another map
View Full Code Here

TOP

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

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.