Class WriteThruOptions
- java.lang.Object
-
- com.alachisoft.ncache.runtime.caching.WriteThruOptions
-
public class WriteThruOptions extends java.lang.Object
Class that defines write-through options regarding updating the data source.
-
-
Constructor Summary
Constructors Constructor Description WriteThruOptions()
Initialized a new instance of WriteThruOptions.WriteThruOptions(WriteMode mode)
Initialized a new instance of WriteThruOptions.WriteThruOptions(WriteMode mode, java.lang.String providerName)
Initialized 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 write-through options.java.util.EnumSet<EventType>
getEventTypes()
Gets the events enumset registered for datasource modification listener.WriteMode
getMode()
Gets theWriteMode
for write-through 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 write-through options.void
setMode(WriteMode value)
Sets theWriteMode
for write-through options.void
setProviderName(java.lang.String value)
Sets the unique identifier for the data source provider.
-
-
-
Constructor Detail
-
WriteThruOptions
public WriteThruOptions()
Initialized a new instance of WriteThruOptions.
-
WriteThruOptions
public WriteThruOptions(WriteMode mode, java.lang.String providerName)
Initialized a new instance of WriteThruOptions.- Parameters:
mode
- SeeWriteMode
for write-through options.providerName
- A unique identifier for the data source provider.
-
-
Method Detail
-
getMode
public final WriteMode getMode()
Gets theWriteMode
for write-through options.- Returns:
- write mode for write-through options.
-
setMode
public final void setMode(WriteMode value)
Sets theWriteMode
for write-through options.- Parameters:
value
- write mode for write-through options.
-
getProviderName
public final java.lang.String getProviderName()
Gets the unique identifier for the data source provider.- Returns:
- The name of datasource 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 datasource provider.
-
getEventTypes
public java.util.EnumSet<EventType> getEventTypes()
Gets the events enumset registered for datasource modification listener.- Returns:
- The events enumset.
-
getDataSourceModificationListener
public final DataSourceModifiedListener getDataSourceModificationListener()
Gets the data source modified notification listener for write-through options.- 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 write-through options.- Parameters:
listener
- A listener that is invoked whenever datasource is modified.eventsEnumSet
- The event type/types to be registered against the datasource listener.
-
-