bufferpool.java

来自「银行项目为后台socket通信写的程序」· Java 代码 · 共 34 行

JAVA
34
字号
/****************************************************************************
 * Package		: com.ecSolutions.ecAppServer.server.buffer
 * File			: BufferPool.java
 * Create Date  : 2007-7-20
 * Author		: Steven Chen
 * 
 * Copyright(C) 2006 ecSolutions(shanghai) Co.,Limited.All Rights Reserved.
 *			
 ***************************************************************************/
package com.ecSolutions.ecAppServer.server.buffer;

import com.ecSolutions.ecAppServer.server.Buffer;

/**
 * Buffer pool.
 * 
 * @author Steven Chen
 * @version $id$
 */
public interface BufferPool {

    /**
     * Allocate buffer from pool.
     * 
     * @param capacity
     *            capacity
     * @param direct
     *            allocate direct buffer
     * @return allocated buffer
     */
    Buffer allocate(int capacity, boolean direct);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?