Package ch.bind.philib.pool.manager

Examples of ch.bind.philib.pool.manager.ByteBufferManager


  public void clear() {
    backend.clear();
  }

  public static ByteBufferPool create(int bufferSize, int maxEntries) {
    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
  }
View Full Code Here


    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
  }

  public static ByteBufferPool create(int bufferSize, int maxEntries, int concurrencyLevel) {
    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    if (concurrencyLevel < 2) {
      return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
    }
    return new ByteBufferPool(new ConcurrentPool<ByteBuffer>(manager, maxEntries, true, concurrencyLevel));
  }
View Full Code Here

  public void clear() {
    backend.clear();
  }

  public static ByteBufferPool create(int bufferSize, int maxEntries) {
    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
  }
View Full Code Here

    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
  }

  public static ByteBufferPool create(int bufferSize, int maxEntries, int concurrencyLevel) {
    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    if (concurrencyLevel < 2) {
      return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
    }
    return new ByteBufferPool(new ConcurrentPool<ByteBuffer>(manager, maxEntries, true, concurrencyLevel));
  }
View Full Code Here

  public void clear() {
    backend.clear();
  }

  public static ByteBufferPool create(int bufferSize, int maxEntries) {
    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
  }
View Full Code Here

    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
  }

  public static ByteBufferPool create(int bufferSize, int maxEntries, int concurrencyLevel) {
    ByteBufferManager manager = new ByteBufferManager(bufferSize);
    if (concurrencyLevel < 2) {
      return new ByteBufferPool(new SoftRefPool<ByteBuffer>(manager, maxEntries));
    }
    return new ByteBufferPool(new ConcurrentPool<ByteBuffer>(manager, maxEntries, true, concurrencyLevel));
  }
View Full Code Here

TOP

Related Classes of ch.bind.philib.pool.manager.ByteBufferManager

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.