Package etch.util.core.nio

Examples of etch.util.core.nio.ByteBufferPool.interval()


  {
    ByteBufferPool p = new ByteBufferPool( 1, 2, 3, 4, 5 );
    assertEquals( 1, p.bufferSize() );
    assertEquals( 2, p.min() );
    assertEquals( 3, p.limit() );
    assertEquals( 4, p.interval() );
    assertEquals( 5, p.length() );
    p.shutdown();
  }

  /** @throws Exception */
 
View Full Code Here


  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 107, 109 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 107, p.interval() );
    assertEquals( 109, p.length() );
    p.shutdown();
  }

  /** @throws Exception */
 
View Full Code Here

  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 0, 109 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }

  /** @throws Exception */
 
View Full Code Here

  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 107, 0 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }

  /** @throws Exception */
 
View Full Code Here

  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 0, 0 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }
 
  /** @throws Exception */
 
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.