Examples of ByteBufferManager


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

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

    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

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

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

    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

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

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

    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

Examples of org.glassfish.grizzly.memory.ByteBufferManager

            }
        }

        if (!Transport.BYTE_BUFFER_TYPE.equalsIgnoreCase(transportConfig.getByteBufferType())) {
            transport.setMemoryManager(
                    new ByteBufferManager(true,
                                          AbstractMemoryManager.DEFAULT_MAX_BUFFER_SIZE,
                                          ByteBufferManager.DEFAULT_SMALL_BUFFER_SIZE));
        }
        transport.setSelectorRunnersCount(Integer.parseInt(transportConfig.getAcceptorThreads()));
View Full Code Here

Examples of org.glassfish.grizzly.memory.ByteBufferManager

            }
        }

        if (!Transport.BYTE_BUFFER_TYPE.equalsIgnoreCase(transportConfig.getByteBufferType())) {
            transport.setMemoryManager(
                    new ByteBufferManager(true,
                                          AbstractMemoryManager.DEFAULT_MAX_BUFFER_SIZE,
                                          ByteBufferManager.DEFAULT_SMALL_BUFFER_SIZE));
        }
        transport.setSelectorRunnersCount(Integer.parseInt(transportConfig.getAcceptorThreads()));
View Full Code Here

Examples of org.glassfish.grizzly.memory.ByteBufferManager

            }
        }

        if (!Transport.BYTE_BUFFER_TYPE.equalsIgnoreCase(transportConfig.getByteBufferType())) {
            transport.setMemoryManager(
                    new ByteBufferManager(true,
                                          AbstractMemoryManager.DEFAULT_MAX_BUFFER_SIZE,
                                          ByteBufferManager.DEFAULT_SMALL_BUFFER_SIZE));
        }
       
        final int acceptorThreads = Integer.parseInt(transportConfig.getAcceptorThreads());
View Full Code Here

Examples of org.glassfish.grizzly.memory.ByteBufferManager

            }
        }

        if (!Transport.BYTE_BUFFER_TYPE.equalsIgnoreCase(transportConfig.getByteBufferType())) {
            transport.setMemoryManager(
                    new ByteBufferManager(true,
                                          AbstractMemoryManager.DEFAULT_MAX_BUFFER_SIZE,
                                          ByteBufferManager.DEFAULT_SMALL_BUFFER_SIZE));
        }
        transport.setSelectorRunnersCount(Integer.parseInt(transportConfig.getAcceptorThreads()));
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.