Click or drag to resize
SyncPolicy Class
Specifies policies that control how a resource is cached and synchronized.
Inheritance Hierarchy
SystemObject
  Oracle.Cloud.Mobile.SynchronizationSyncPolicy

Namespace: Oracle.Cloud.Mobile.Synchronization
Assemblies:  Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
  Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntax
public sealed class SyncPolicy

The SyncPolicy type exposes the following members.

Constructors
  NameDescription
Public methodSyncPolicy
Initializes a new SyncPolicy object whose values are the same as SyncPolicy.Default.
Top
Properties
  NameDescription
Public propertyConflictResolutionPolicy
Sepcifies how conflicts should be resolved.
Public propertyStatic memberDefault
Returns a SyncPolicy object with default values of FetchPolicy.FetchFromService, ExpirationPolicy.NeverExpire, EvictionPolicy.ManualEviction and UpdatePolicy.UpdateIfOnline. The returned object should not be modified by callers.
Public propertyEvictionPolicy
Specifies when an expired resource is evicted from the cache.
Public propertyExpirationPolicy
Specifies when a cached resource expires.
Public propertyExpireAfter
The duration after which a cached resource expires, only valid if ExpirationPolicy is set to ExpireAfter.
Public propertyFetchPolicy
Specifies whether a GET returns data from the cache or the service.
Public propertyNoCache
The resource is not cached on the device. This is useful for sensitive or large data.
Public propertyRefreshPolicy
Specifies how a cached resource is refreshed.
Public propertyUpdatePolicy
Specifies how updates (PUT/POST/DELETE/PATCH) operations behave.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also