com.objectwave.transactionalSupport
Class ExpandingObjectModifiedArrayCache

java.lang.Object
  |
  +--com.objectwave.transactionalSupport.ExpandingObjectModifiedArrayCache

public class ExpandingObjectModifiedArrayCache
extends java.lang.Object

Maintain a collection of ObjectModified objects. A unique cached exists for each thread. See ExpandingObjectModifiedCache for details.

Version:
2.1
Author:
Craig Murphy, Dave Hoag
See Also:
ExpandingObjectModifiedCache

Constructor Summary
ExpandingObjectModifiedArrayCache()
           
 
Method Summary
static ObjectModified[] getObjectModifiedFromCache()
          Entry point to get objects from the cache.
 ObjectModified[] getObjectModifiedFromCacheWork()
          Attempt to lift an array out of the cache.
static void main(java.lang.String[] args)
           
static void returnObjectModifiedToCache(ObjectModified[] value)
          Entry point to return objects to the cache.
 void returnObjectModifiedToCacheWork(ObjectModified[] value)
          Cache arrays of various sizes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandingObjectModifiedArrayCache

public ExpandingObjectModifiedArrayCache()
Method Detail

getObjectModifiedFromCache

public static final ObjectModified[] getObjectModifiedFromCache()
Entry point to get objects from the cache.


returnObjectModifiedToCache

public static final void returnObjectModifiedToCache(ObjectModified[] value)
Entry point to return objects to the cache.


getObjectModifiedFromCacheWork

public final ObjectModified[] getObjectModifiedFromCacheWork()
Attempt to lift an array out of the cache. If there are no elements in the array, create a new one.


returnObjectModifiedToCacheWork

public final void returnObjectModifiedToCacheWork(ObjectModified[] value)
Cache arrays of various sizes. This method will clean the array before returning it to the cache.


main

public static void main(java.lang.String[] args)