CacheFactory MethodsPivotal GemFire .NET Client Documentation
The CacheFactory type exposes the following members.
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 String, String )
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 attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetAnyInstance
Gets an arbitrary open instance of Cache produced by an earlier call to Create .
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetInstance
Public methodStatic memberGetInstanceCloseOk
Gets the instance of Cache produced by an earlier call to 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 methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Back to Top
See Also