com.pega.pegarules.pub
Class StringBufferFactoryConstants

java.lang.Object
  extended by com.pega.pegarules.pub.StringBufferFactoryConstants

public class StringBufferFactoryConstants
extends java.lang.Object

StringBufferFactoryConstants specifies the size of the various StringBuffer buckets for the StringBufferFactory. Use this to change the profile of sizes of StringBuffers that the system manages. Note that it is important that the size specified be an ODD NUMBER. We use the 'plus 1' to detect if StringBuffers' capacity was expanded during use. Since StringBuffers capacity is doubled when expanded it will never be ODD again. Tune the PER_CAPACITY_POOL_SIZE and PER_CAPACITY_POOL_LIMIT to match up with your expected thread concurrency (simultaneous requests for StringBuffers) and desired memory footprint.

Version:
$Revision: 4737 $ $Date: 2010-05-03 14:19:25 -0400 (Mon, 03 May 2010) $
Author:
John Clinton

Field Summary
static java.lang.String COPYRIGHT
           
static int DEFAULT_ACQUIRE_SIZE
           
static int[] PER_CAPACITY_POOL_LIMIT
           
static int[] PER_CAPACITY_POOL_SIZE
           
static int[] POOL_CAPACITIES
           
static int PRUNE_WAIT_TIME_MILLIS
           
static java.lang.String VERSION
           
 
Constructor Summary
StringBufferFactoryConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION

POOL_CAPACITIES

public static final int[] POOL_CAPACITIES

PER_CAPACITY_POOL_SIZE

public static final int[] PER_CAPACITY_POOL_SIZE

PER_CAPACITY_POOL_LIMIT

public static final int[] PER_CAPACITY_POOL_LIMIT

DEFAULT_ACQUIRE_SIZE

public static final int DEFAULT_ACQUIRE_SIZE
See Also:
Constant Field Values

PRUNE_WAIT_TIME_MILLIS

public static final int PRUNE_WAIT_TIME_MILLIS
See Also:
Constant Field Values
Constructor Detail

StringBufferFactoryConstants

public StringBufferFactoryConstants()


Copyright © 2012 Pegasystems Inc. All Rights Reserved.