// ************************************************************************ // $Id: ArenaFactory.java 561 2005-07-11 20:09:17Z mdeters $ // ************************************************************************ // // jRate // // Copyright (C) 2001-2005 by Angelo Corsaro. // // All Rights Reserved. // // Permission to use, copy, modify, and distribute this software and // its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies and // that both that copyright notice and this permission notice appear // in supporting documentation. I don't make any representations // about the suitability of this software for any purpose. It is // provided "as is" without express or implied warranty. // // // ************************************************************************* // // ************************************************************************* package javax.realtime; /** * The class ArenaFactory has the responsibility of * creating Arena instances. * * @author Angelo Corsaro * @version 1.0 */ public class ArenaFactory { protected static ArenaFactory theInstance = new ArenaFactory(); protected ArenaFactory() { } public static ArenaFactory instance() { return theInstance; } public static native RefCountedArena createRefCountedArena(long size); public static native RefCountedArena createRefCountedArena(SizeEstimator size); public static native RefCountedArena createRefCountedArena(long size, Runnable logic); public static native RefCountedArena createRefCountedArena(SizeEstimator size, Runnable logic); }