Examples of ByteArrayManager


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

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

    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

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

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

    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
Copyright © 2018 www.massapi.com. 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.