ByteBufferPool.java revision 608:7e06bf1dcb09
1238384Sjkim/*
2238384Sjkim * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
3238384Sjkim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4238384Sjkim *
5238384Sjkim * This code is free software; you can redistribute it and/or modify it
6238384Sjkim * under the terms of the GNU General Public License version 2 only, as
7238384Sjkim * published by the Free Software Foundation.  Oracle designates this
8238384Sjkim * particular file as subject to the "Classpath" exception as provided
9238384Sjkim * by Oracle in the LICENSE file that accompanied this code.
10238384Sjkim *
11238384Sjkim * This code is distributed in the hope that it will be useful, but WITHOUT
12238384Sjkim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13238384Sjkim * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14238384Sjkim * version 2 for more details (a copy is included in the LICENSE file that
15238384Sjkim * accompanied this code).
16238384Sjkim *
17238384Sjkim * You should have received a copy of the GNU General Public License version
18238384Sjkim * 2 along with this work; if not, write to the Free Software Foundation,
19238384Sjkim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20238384Sjkim *
21238384Sjkim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22238384Sjkim * or visit www.oracle.com if you need additional information or have any
23238384Sjkim * questions.
24238384Sjkim */
25238384Sjkim
26238384Sjkimpackage com.sun.corba.se.pept.transport;
27238384Sjkim
28238384Sjkimimport java.nio.ByteBuffer;
29238384Sjkim
30238384Sjkim/**
31238384Sjkim * @author Charlie Hunt
32238384Sjkim */
33238384Sjkimpublic interface ByteBufferPool
34238384Sjkim{
35238384Sjkim    public ByteBuffer getByteBuffer(int theSize);
36238384Sjkim    public void releaseByteBuffer(ByteBuffer thebb);
37238384Sjkim    public int activeCount();
38238384Sjkim}
39238384Sjkim
40238384Sjkim// End of file.
41238384Sjkim