Class WriteThruOptions
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.WriteThruOptions
-
public class WriteThruOptions extends java.lang.Object
A 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 DataSourceModifiedListener
getDataSourceModificationListener()
Gets the data source modified notification listener for WriteThruOptions.java.util.EnumSet<EventType>
getEventTypes()
Gets the events enumset registered for data source modification listener.WriteMode
getMode()
Gets theWriteMode
for WriteThruOptions options.java.lang.String
getProviderName()
Gets the unique identifier for the data source provider.void
setDataSourceModificationListener(DataSourceModifiedListener listener, java.util.EnumSet<EventType> eventsEnumSet)
Sets the data source modified notification listener for WriteThruOptions.void
setMode(WriteMode value)
Sets theWriteMode
for WriteThruOptions.void
setProviderName(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 theWriteMode
for WriteThruOptions.providerName
- Specifies the unique identifier for the data source provider.
-
-
Method Detail
-
getMode
public final WriteMode getMode()
Gets theWriteMode
for WriteThruOptions options.- Returns:
- Write mode for WriteThruOptions.
-
setMode
public final void setMode(WriteMode value)
Sets theWriteMode
for 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.
-
-