Click or drag to resize
CacheFactory Class

Note: This API is now obsolete.

A factory class that must be used to obtain instance of Cache.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::CacheFactory>]
    GemStone.GemFire.CacheCacheFactory

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public class CacheFactory : [T:GemStone.GemFire.Cache.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(Properties)
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 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 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 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