Package ch.bind.philib.pool.manager

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


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

  public static ByteArrayPool create(int bufferSize, int maxEntries) {
    ByteArrayManager manager = new ByteArrayManager(bufferSize);
    return new ByteArrayPool(new SoftRefPool<byte[]>(manager, maxEntries));
  }
View Full Code Here


    ByteArrayManager manager = new ByteArrayManager(bufferSize);
    return new ByteArrayPool(new SoftRefPool<byte[]>(manager, maxEntries));
  }

  public static ByteArrayPool create(int bufferSize, int maxEntries, int concurrencyLevel) {
    ByteArrayManager manager = new ByteArrayManager(bufferSize);
    if (concurrencyLevel < 2) {
      return new ByteArrayPool(new SoftRefPool<byte[]>(manager, maxEntries));
    }
    return new ByteArrayPool(new ConcurrentPool<byte[]>(manager, maxEntries, true, concurrencyLevel));
  }
View Full Code Here

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

  public static ByteArrayPool create(int bufferSize, int maxEntries) {
    ByteArrayManager manager = new ByteArrayManager(bufferSize);
    return new ByteArrayPool(new SoftRefPool<byte[]>(manager, maxEntries));
  }
View Full Code Here

    ByteArrayManager manager = new ByteArrayManager(bufferSize);
    return new ByteArrayPool(new SoftRefPool<byte[]>(manager, maxEntries));
  }

  public static ByteArrayPool create(int bufferSize, int maxEntries, int concurrencyLevel) {
    ByteArrayManager manager = new ByteArrayManager(bufferSize);
    if (concurrencyLevel < 2) {
      return new ByteArrayPool(new SoftRefPool<byte[]>(manager, maxEntries));
    }
    return new ByteArrayPool(new ConcurrentPool<byte[]>(manager, maxEntries, true, concurrencyLevel));
  }
View Full Code Here

TOP

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

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.