Examples of used()


Examples of org.directmemory.memory.OffHeapMemoryBuffer.used()

    Thread.sleep(2000);

    logger.info("calling disposeExpiredRelative again");
    mem.disposeExpiredRelative();
    logger.info("total used=" + Ram.inMb(mem.used()));
    assertEquals(0, mem.used());
   
  }
}
View Full Code Here

Examples of org.directmemory.memory.OffHeapMemoryBuffer.used()

    Thread.sleep(2000);

    logger.info("calling disposeExpiredRelative again");
    mem.disposeExpiredRelative();
    logger.info("total used=" + Ram.inMb(mem.used()));
    assertEquals(0, mem.used());
   
  }
}
View Full Code Here

Examples of org.snmp4j.transport.DefaultTcpTransportMapping.SocketEntry.used()

    private void readMessage(SelectionKey sk, SocketChannel readChannel,
                             TcpAddress incomingAddress) throws IOException {
      SocketEntry entry = (SocketEntry) sockets.get(incomingAddress);
      if (entry != null) {
        // note that socket has been used
        entry.used();
        ByteBuffer readBuffer = entry.getReadBuffer();
        if (readBuffer != null) {
          readChannel.read(readBuffer);
          if (readBuffer.hasRemaining()) {
            entry.addRegistration(selector, SelectionKey.OP_READ);
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.