Class ResyncOptions
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.datasource.ResyncOptions
-
public class ResyncOptions extends java.lang.ObjectResyncOptions class contains information for the items that would be resynced after expiration from the Read-Through provider.
-
-
Constructor Summary
Constructors Constructor Description ResyncOptions(boolean resyncOnExpiration)Creates an instance of ResyncOptions.ResyncOptions(boolean resyncOnExpiration, java.lang.String providerName)Creates an instance of ResyncOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetProviderName()Gets the Read-Through provider name with which items will be resynced at expiry.booleangetResyncOnExpiration()Gets the flag that indicates whether the items are to be resynced at expiry or not.voidsetProviderName(java.lang.String value)Sets the Read-Through provider name with which items will be resynced at expiry.voidsetResyncOnExpiration(boolean value)Sets the flag that indicates whether the items are to be resynced at expiry or not.
-
-
-
Constructor Detail
-
ResyncOptions
public ResyncOptions(boolean resyncOnExpiration)
Creates an instance of ResyncOptions.- Parameters:
resyncOnExpiration- Flag that specifies whether the items are to be resynced after expiration.
-
ResyncOptions
public ResyncOptions(boolean resyncOnExpiration, java.lang.String providerName)Creates an instance of ResyncOptions.- Parameters:
resyncOnExpiration- Flag that specifies whether the items are to be resynced after expiration.providerName- After expiration items are resynced using the specified provider name.
-
-
Method Detail
-
getResyncOnExpiration
public final boolean getResyncOnExpiration()
Gets the flag that indicates whether the items are to be resynced at expiry or not.- Returns:
- Resync on expiration flag.
-
setResyncOnExpiration
public final void setResyncOnExpiration(boolean value)
Sets the flag that indicates whether the items are to be resynced at expiry or not.- Parameters:
value- Resync on expiration flag.
-
getProviderName
public final java.lang.String getProviderName()
Gets the Read-Through provider name with which items will be resynced at expiry.- Returns:
- The name of the Read-Through provider.
-
setProviderName
public final void setProviderName(java.lang.String value)
Sets the Read-Through provider name with which items will be resynced at expiry.- Parameters:
value- The name of the resync provider.
-
-