Click or drag to resize
CacheFactory Class
A factory class that must be used to obtain instance of Cache.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Generic.Internal.SBWrap<gemfire::CacheFactory>]
    GemStone.GemFire.Cache.GenericCacheFactory

Namespace: GemStone.GemFire.Cache.Generic
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public class CacheFactory : [T:GemStone.GemFire.Cache.Generic.Internal.SBWrap<gemfire::CacheFactory>]

The CacheFactory type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberProductDescription
Returns the product description string including product name and version.
Public propertyStatic memberVersion
Returns the version of the cache implementation. For the 1.0 release of GemFire, the string returned is 1.0.
Top
Methods
  NameDescription
Public methodAddLocator
Add a locator, given its host and port, to this factory.
Public methodAddServer
Add a server, given its host and port, to this factory.
Public methodCreate
To create the instance of Cache.
Public methodStatic memberCreate(String, DistributedSystem)
Creates a new cache using the specified system.
Public methodStatic memberCreate(String, DistributedSystem, CacheAttributes)
Creates a new cache using the specified system using the given CacheAttributes.
Public methodStatic memberCreate(String, DistributedSystem, String)
Creates a new cache using the specified system using parameters from the given XML file.
Public methodStatic memberCreate(String, DistributedSystem, String, CacheAttributes)
Creates a new cache using the specified system using parameters from the given XML file and with the given CacheAttributes.
Public methodStatic memberCreateCacheFactory
A factory class that must be used to obtain instance of Cache. This should be called once. Using this one can set default values of Pool.
Public methodStatic memberCreateCacheFactory(PropertiesString, String)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetAnyInstance
Gets an arbitrary open instance of Cache produced by an earlier call to [!:CacheFactory.Create].
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetInstance
Gets the instance of Cache produced by an earlier call to [!:CacheFactory.Create].
Public methodStatic memberGetInstanceCloseOk
Gets the instance of Cache produced by an earlier call to [!:CacheFactory.Create], even if it has been closed.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSet
Sets a gemfire property that will be used when creating the ClientCache.
Public methodSetFreeConnectionTimeout
Sets the free connection timeout for this pool.
Public methodSetIdleTimeout
Set the amount of time a connection can be idle before expiring the connection.
Public methodSetLoadConditioningInterval
Sets the load conditioning interval for this pool.
Public methodSetMaxConnections
Set the max number of client to server connections that the pool will create.
Public methodSetMinConnections
Set the minimum number of connections to keep available at all times.
Public methodSetMultiuserAuthentication
Sets whether pool is in multiuser mode
Public methodStatic memberSetNewAndDelete
Set allocators for non default Microsoft CRT versions.
Public methodSetPdxIgnoreUnreadFields
Public methodSetPdxReadSerialized
Sets the object preference to PdxInstance type. When a cached object that was serialized as a PDX is read from the cache a {@link PdxInstance} will be returned instead of the actual domain class. The PdxInstance is an interface that provides run time access to the fields of a PDX without deserializing the entire PDX. The PdxInstance implementation is a light weight wrapper that simply refers to the raw bytes of the PDX that are kept in the cache. Using this method applications can choose to access PdxInstance instead of Java object. Note that a PdxInstance is only returned if a serialized PDX is found in the cache. If the cache contains a deserialized PDX, then a domain class instance is returned instead of a PdxInstance.
Public methodSetPingInterval
Set how often to ping servers to verify that they are still alive.
Public methodSetPRSingleHopEnabled
Public methodSetReadTimeout
Sets the number of milliseconds to wait for a response from a server before timing out the operation and trying another server (if any are available).
Public methodSetRetryAttempts
Set the number of times to retry a request after timeout/exception.
Public methodSetServerGroup
Configures the group that all servers this pool connects to must belong to.
Public methodSetSocketBufferSize
Sets the socket buffer size for each connection made in this pool.
Public methodSetStatisticInterval
Set how often to send client statistics to the server.
Public methodSetSubscriptionAckInterval
Sets the is the interval in milliseconds to wait before sending acknowledgements to the bridge server for events received from the server subscriptions.
Public methodSetSubscriptionEnabled
Enable subscriptions.
Public methodSetSubscriptionMessageTrackingTimeout
Sets the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds, for subscription events the client has received from the server.
Public methodSetSubscriptionRedundancy
Sets the redundancy level for this pools server-to-client subscriptions.
Public methodSetThreadLocalConnections
Enable thread local connections.
Public methodSetUpdateLocatorListInterval
Set how often to update locator list from locator
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
To create a new cache instance, use [!:CacheFactory.CreateCacheFactory].

To get an existing unclosed cache instance, use [!:CacheFactory.GetInstance].

See Also