Class WriteThruOptions
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.WriteThruOptions
-
public class WriteThruOptions extends java.lang.ObjectA class that defines WriteThruOptions regarding updating the data source.
-
-
Constructor Summary
Constructors Constructor Description WriteThruOptions()Initializes a new instance of WriteThruOptions.WriteThruOptions(WriteMode mode)Initializes a new instance of WriteThruOptions.WriteThruOptions(WriteMode mode, java.lang.String providerName)Initializes a new instance of WriteThruOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourceModifiedListenergetDataSourceModificationListener()Gets the data source modified notification listener for WriteThruOptions.java.util.EnumSet<EventType>getEventTypes()Gets the events enumset registered for data source modification listener.WriteModegetMode()Gets theWriteModefor WriteThruOptions options.java.lang.StringgetProviderName()Gets the unique identifier for the data source provider.voidsetDataSourceModificationListener(DataSourceModifiedListener listener, java.util.EnumSet<EventType> eventsEnumSet)Sets the data source modified notification listener for WriteThruOptions.voidsetMode(WriteMode value)Sets theWriteModefor WriteThruOptions.voidsetProviderName(java.lang.String value)Sets the unique identifier for the data source provider.
-
-
-
Constructor Detail
-
WriteThruOptions
public WriteThruOptions()
Initializes a new instance of WriteThruOptions.
-
WriteThruOptions
public WriteThruOptions(WriteMode mode, java.lang.String providerName)
Initializes a new instance of WriteThruOptions.- Parameters:
mode- Specifies theWriteModefor WriteThruOptions.providerName- Specifies the unique identifier for the data source provider.
-
-
Method Detail
-
getMode
public final WriteMode getMode()
Gets theWriteModefor WriteThruOptions options.- Returns:
- Write mode for WriteThruOptions.
-
setMode
public final void setMode(WriteMode value)
Sets theWriteModefor WriteThruOptions.- Parameters:
value- Write mode for WriteThruOptions.
-
getProviderName
public final java.lang.String getProviderName()
Gets the unique identifier for the data source provider.- Returns:
- The name of data source provider.
-
setProviderName
public final void setProviderName(java.lang.String value)
Sets the unique identifier for the data source provider.- Parameters:
value- The name of the data source provider.
-
getEventTypes
public java.util.EnumSet<EventType> getEventTypes()
Gets the events enumset registered for data source modification listener.- Returns:
- The events enumset.
-
getDataSourceModificationListener
public final DataSourceModifiedListener getDataSourceModificationListener()
Gets the data source modified notification listener for WriteThruOptions.- Returns:
- The data source modified notification listener.
-
setDataSourceModificationListener
public final void setDataSourceModificationListener(DataSourceModifiedListener listener, java.util.EnumSet<EventType> eventsEnumSet)
Sets the data source modified notification listener for WriteThruOptions.- Parameters:
listener- A listener that is invoked whenever data source is modified.eventsEnumSet- The event type/types to be registered against the data source listener.
-
-