Top Description Inners Fields Constructors Methods
net.sf.ehcache.config

public Class CacheWriterConfiguration

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.util.Collection, net.sf.ehcache.Cache, net.sf.ehcache.store.Store, net.sf.ehcache.writer.CacheWriterManager, net.sf.ehcache.writer.writebehind.WriteBehindManager, net.sf.ehcache.writer.writethrough.WriteThroughManager

Class to hold the CacheWriterManager configuration
Author
Geert Bevin
Version
$Id: CacheWriterConfiguration.java 10789 2018-04-26 02:08:13Z adahanne $

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CacheWriterConfiguration.CacheWriterFactoryConfiguration

Configuration for the CacheWriterFactoryConfiguration.

public static enum

Field Summary

Modifier and TypeField and Description
private CacheWriterConfiguration.CacheWriterFactoryConfiguration
public static final int
DEFAULT_MAX_WRITE_DELAY

Default maximum write delay

public static final int
DEFAULT_MIN_WRITE_DELAY

Default minimum write delay

public static final boolean
DEFAULT_NOTIFY_LISTENERS_ON_EXCEPTION

Default notifyListenersOnException behavior

public static final int
DEFAULT_RATE_LIMIT_PER_SECOND

Default rate limit per second

public static final int
DEFAULT_RETRY_ATTEMPT_DELAY_SECONDS

Default retry attempt delay

public static final int
DEFAULT_RETRY_ATTEMPTS

Default retry attempts

public static final int
DEFAULT_WRITE_BATCH_SIZE

Default write batch size

public static final boolean
DEFAULT_WRITE_BATCHING

Default writeBatching behavior

public static final int
DEFAULT_WRITE_BEHIND_CONCURRENCY

Default concurrency level for write behind

public static final int
DEFAULT_WRITE_BEHIND_MAX_QUEUE_SIZE

Default max queue size for write behind

public static final boolean
DEFAULT_WRITE_COALESCING

Default write coalescing behavior

public static final CacheWriterConfiguration.WriteMode
DEFAULT_WRITE_MODE

Default writeMode

private int
private int
private boolean
private int
private int
private int
private boolean
private int
private int
private int
private boolean
private CacheWriterConfiguration.WriteMode

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
addCacheWriterFactory(CacheWriterConfiguration.CacheWriterFactoryConfiguration cacheWriterFactoryConfiguration)

Allows BeanHandler to add the CacheWriterFactory to the configuration.

public CacheWriterConfiguration

Returns:

this configuration instance
cacheWriterFactory
(CacheWriterConfiguration.CacheWriterFactoryConfiguration cacheWriterFactory)

public CacheWriterConfiguration

Returns:

a copy, which independent other than configurations than cannot change.
clone
()

Overrides java.lang.Object.clone.

Clones this object, following the usual contract.
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Overrided equals()
public CacheWriterConfiguration.CacheWriterFactoryConfiguration

Returns:

the configuration
getCacheWriterFactoryConfiguration
()

Accessor

public int
getMaxWriteDelay()

Get the maximum number of seconds to wait before writing behind

public int
getMinWriteDelay()

Get the minimum number of seconds to wait before writing behind

public boolean
getNotifyListenersOnException()

Check whether listeners should be notified when an exception occurs on a writer operation

public int
getRateLimitPerSecond()

Get the maximum number of write operations to allow per second.

public int
getRetryAttemptDelaySeconds()

Retrieves the number of seconds to wait before retrying an failed operation.

public int
getRetryAttempts()

Retrieves the number of times the write of element is retried.

public boolean
getWriteBatching()

Check whether write operations should be batched

public int
getWriteBatchSize()

Retrieves the size of the batch operation.

public int

Returns:

the amount of bucket/thread pairs configured for this cache's write behind
getWriteBehindConcurrency
()

Accessor

public int

Returns:

the maximum amount of operations allowed on the write behind queue
getWriteBehindMaxQueueSize
()

Accessor

public boolean

Returns:

this configuration instance
getWriteCoalescing
()

public CacheWriterConfiguration.WriteMode
getWriteMode()

Get the write mode in terms of the mode enum

public int
hashCode()

Overrides java.lang.Object.hashCode.

Overrided hashCode()
public CacheWriterConfiguration

Returns:

this configuration instance
maxWriteDelay
(int maxWriteDelay)

public CacheWriterConfiguration

Returns:

this configuration instance
minWriteDelay
(int minWriteDelay)

public CacheWriterConfiguration

Returns:

this configuration instance
notifyListenersOnException
(boolean notifyListenersOnException)

public CacheWriterConfiguration

Returns:

this configuration instance
rateLimitPerSecond
(int rateLimitPerSecond)

public CacheWriterConfiguration

Returns:

this configuration instance
retryAttemptDelaySeconds
(int retryAttemptDelaySeconds)

public CacheWriterConfiguration

Returns:

this configuration instance
retryAttempts
(int retryAttempts)

public void
setMaxWriteDelay(int
the maximum number of seconds to wait before writing behind
maxWriteDelay
)

Set the maximum number of seconds to wait before writing behind.

public void
setMinWriteDelay(int
the minimum number of seconds to wait before writing behind
minWriteDelay
)

Set the minimum number of seconds to wait before writing behind.

public void
setNotifyListenersOnException(boolean
true if listeners should be notified when an exception occurs on a writer operation; false otherwise
notifyListenersOnException
)

Sets whether to notify listeners when an exception occurs on a writer operation.

public void
setRateLimitPerSecond(int
the number of write operations to allow; use a number <=0 to disable rate limiting.
rateLimitPerSecond
)

Sets the maximum number of write operations to allow per second when writeBatching is enabled.

public void
setRetryAttemptDelaySeconds(int
the number of seconds to wait before retrying an operation
retryAttemptDelaySeconds
)

Sets the number of seconds to wait before retrying an failed operation.

public void
setRetryAttempts(int
the number of retries for a particular element
retryAttempts
)

Sets the number of times the operation is retried in the CacheWriter, this happens after the original operation.

public void
setWriteBatching(boolean
true if write operations should be batched; false otherwise
writeBatching
)

Sets whether to batch write operations.

public void
setWriteBatchSize(int
the number of operations to include in each batch; numbers smaller than 1 will cause the default batch size to be used
writeBatchSize
)

Sets the number of operations to include in each batch when writeBatching is enabled.

public void
setWriteBehindConcurrency(int
Amount of thread/bucket pairs, has to be at least 1
concurrency
)

Configures the amount of thread/bucket pairs WriteBehind should use

public void
setWriteBehindMaxQueueSize(final int
maximum amount of operations allowed on the waiting queue
writeBehindMaxQueueSize
)

Configures the maximum amount of operations to be on the waiting queue, before it blocks

public void
setWriteCoalescing(boolean
true to enable write coalescing; or false to disable it
writeCoalescing
)

Sets whether to use write coalescing.

public void
setWriteMode(String writeMode)

Converts the writeMode string argument to uppercase and looks up enum constant in WriteMode.

public void
validate(Collection<ConfigError>
collection to add errors to.
errors
)

Check for errors/inconsistencies in this configuration.

public CacheWriterConfiguration

Returns:

this configuration instance
writeBatching
(boolean writeBatching)

public CacheWriterConfiguration

Returns:

this configuration instance
writeBatchSize
(int writeBatchSize)

public CacheWriterConfiguration

Returns:

this configuration instance
writeBehindConcurrency
(int
Amount of thread/bucket pairs, has to be at least 1
concurrency
)

public CacheWriterConfiguration

Returns:

this configuration instance
writeBehindMaxQueueSize
(int
maximum amount of operations allowed on the waiting queue
writeBehindMaxQueueSize
)

public CacheWriterConfiguration

Returns:

this configuration instance
writeCoalescing
(boolean writeCoalescing)

public CacheWriterConfiguration

Returns:

this configuration instance
writeMode
(String writeMode)

public CacheWriterConfiguration

Returns:

this configuration instance
writeMode
(CacheWriterConfiguration.WriteMode writeMode)

Inherited from java.lang.Object:
finalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheWriterFactoryConfigurationback to summary
private CacheWriterConfiguration.CacheWriterFactoryConfiguration cacheWriterFactoryConfiguration
DEFAULT_MAX_WRITE_DELAYback to summary
public static final int DEFAULT_MAX_WRITE_DELAY

Default maximum write delay

DEFAULT_MIN_WRITE_DELAYback to summary
public static final int DEFAULT_MIN_WRITE_DELAY

Default minimum write delay

DEFAULT_NOTIFY_LISTENERS_ON_EXCEPTIONback to summary
public static final boolean DEFAULT_NOTIFY_LISTENERS_ON_EXCEPTION

Default notifyListenersOnException behavior

DEFAULT_RATE_LIMIT_PER_SECONDback to summary
public static final int DEFAULT_RATE_LIMIT_PER_SECOND

Default rate limit per second

DEFAULT_RETRY_ATTEMPT_DELAY_SECONDSback to summary
public static final int DEFAULT_RETRY_ATTEMPT_DELAY_SECONDS

Default retry attempt delay

DEFAULT_RETRY_ATTEMPTSback to summary
public static final int DEFAULT_RETRY_ATTEMPTS

Default retry attempts

DEFAULT_WRITE_BATCH_SIZEback to summary
public static final int DEFAULT_WRITE_BATCH_SIZE

Default write batch size

DEFAULT_WRITE_BATCHINGback to summary
public static final boolean DEFAULT_WRITE_BATCHING

Default writeBatching behavior

DEFAULT_WRITE_BEHIND_CONCURRENCYback to summary
public static final int DEFAULT_WRITE_BEHIND_CONCURRENCY

Default concurrency level for write behind

DEFAULT_WRITE_BEHIND_MAX_QUEUE_SIZEback to summary
public static final int DEFAULT_WRITE_BEHIND_MAX_QUEUE_SIZE

Default max queue size for write behind

DEFAULT_WRITE_COALESCINGback to summary
public static final boolean DEFAULT_WRITE_COALESCING

Default write coalescing behavior

DEFAULT_WRITE_MODEback to summary
public static final CacheWriterConfiguration.WriteMode DEFAULT_WRITE_MODE

Default writeMode

maxWriteDelayback to summary
private int maxWriteDelay
minWriteDelayback to summary
private int minWriteDelay
notifyListenersOnExceptionback to summary
private boolean notifyListenersOnException
rateLimitPerSecondback to summary
private int rateLimitPerSecond
retryAttemptDelaySecondsback to summary
private int retryAttemptDelaySeconds
retryAttemptsback to summary
private int retryAttempts
writeBatchingback to summary
private boolean writeBatching
writeBatchSizeback to summary
private int writeBatchSize
writeBehindConcurrencyback to summary
private int writeBehindConcurrency
writeBehindMaxQueueSizeback to summary
private int writeBehindMaxQueueSize
writeCoalescingback to summary
private boolean writeCoalescing
writeModeback to summary
private CacheWriterConfiguration.WriteMode writeMode

Constructor Detail

CacheWriterConfigurationback to summary
public CacheWriterConfiguration()

Method Detail

addCacheWriterFactoryback to summary
public final void addCacheWriterFactory(CacheWriterConfiguration.CacheWriterFactoryConfiguration cacheWriterFactoryConfiguration)

Allows BeanHandler to add the CacheWriterFactory to the configuration.

cacheWriterFactoryback to summary
public CacheWriterConfiguration cacheWriterFactory(CacheWriterConfiguration.CacheWriterFactoryConfiguration cacheWriterFactory)
Returns:CacheWriterConfiguration

this configuration instance

See Also
addCacheWriterFactory(CacheWriterFactoryConfiguration)
cloneback to summary
public CacheWriterConfiguration clone()

Overrides java.lang.Object.clone.

Clones this object, following the usual contract.

Returns:CacheWriterConfiguration

a copy, which independent other than configurations than cannot change.

Annotations
@Override
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Overrided equals()

Parameters
obj:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getCacheWriterFactoryConfigurationback to summary
public CacheWriterConfiguration.CacheWriterFactoryConfiguration getCacheWriterFactoryConfiguration()

Accessor

Returns:CacheWriterConfiguration.CacheWriterFactoryConfiguration

the configuration

getMaxWriteDelayback to summary
public int getMaxWriteDelay()

Get the maximum number of seconds to wait before writing behind

getMinWriteDelayback to summary
public int getMinWriteDelay()

Get the minimum number of seconds to wait before writing behind

getNotifyListenersOnExceptionback to summary
public boolean getNotifyListenersOnException()

Check whether listeners should be notified when an exception occurs on a writer operation

getRateLimitPerSecondback to summary
public int getRateLimitPerSecond()

Get the maximum number of write operations to allow per second.

getRetryAttemptDelaySecondsback to summary
public int getRetryAttemptDelaySeconds()

Retrieves the number of seconds to wait before retrying an failed operation.

getRetryAttemptsback to summary
public int getRetryAttempts()

Retrieves the number of times the write of element is retried.

getWriteBatchingback to summary
public boolean getWriteBatching()

Check whether write operations should be batched

getWriteBatchSizeback to summary
public int getWriteBatchSize()

Retrieves the size of the batch operation.

getWriteBehindConcurrencyback to summary
public int getWriteBehindConcurrency()

Accessor

Returns:int

the amount of bucket/thread pairs configured for this cache's write behind

getWriteBehindMaxQueueSizeback to summary
public int getWriteBehindMaxQueueSize()

Accessor

Returns:int

the maximum amount of operations allowed on the write behind queue

getWriteCoalescingback to summary
public boolean getWriteCoalescing()
Returns:boolean

this configuration instance

See Also
setWriteCoalescing(boolean)
getWriteModeback to summary
public CacheWriterConfiguration.WriteMode getWriteMode()

Get the write mode in terms of the mode enum

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Overrided hashCode()

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

Annotations
@Override
maxWriteDelayback to summary
public CacheWriterConfiguration maxWriteDelay(int maxWriteDelay)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setMaxWriteDelay(int)
minWriteDelayback to summary
public CacheWriterConfiguration minWriteDelay(int minWriteDelay)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setMinWriteDelay(int)
notifyListenersOnExceptionback to summary
public CacheWriterConfiguration notifyListenersOnException(boolean notifyListenersOnException)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setNotifyListenersOnException(boolean)
rateLimitPerSecondback to summary
public CacheWriterConfiguration rateLimitPerSecond(int rateLimitPerSecond)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setRateLimitPerSecond(int rateLimitPerSecond)
retryAttemptDelaySecondsback to summary
public CacheWriterConfiguration retryAttemptDelaySeconds(int retryAttemptDelaySeconds)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setRetryAttemptDelaySeconds(int)
retryAttemptsback to summary
public CacheWriterConfiguration retryAttempts(int retryAttempts)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setRetryAttempts(int)
setMaxWriteDelayback to summary
public void setMaxWriteDelay(int maxWriteDelay)

Set the maximum number of seconds to wait before writing behind. If set to a value greater than 0, it permits operations to build up in the queue to enable effective coalescing and batching optimisations.

This is only applicable to write behind mode.

Defaults to 1).

Parameters
maxWriteDelay:int

the maximum number of seconds to wait before writing behind

setMinWriteDelayback to summary
public void setMinWriteDelay(int minWriteDelay)

Set the minimum number of seconds to wait before writing behind. If set to a value greater than 0, it permits operations to build up in the queue. This is different from the maximum write delay in that by waiting a minimum amount of time, work is always being built up. If the minimum write delay is set to zero and the CacheWriter performs its work very quickly, the overhead of processing the write behind queue items becomes very noticeable in a cluster since all the operations might be done for individual items instead of for a collection of them.

This is only applicable to write behind mode.

Defaults to 1).

Parameters
minWriteDelay:int

the minimum number of seconds to wait before writing behind

setNotifyListenersOnExceptionback to summary
public void setNotifyListenersOnException(boolean notifyListenersOnException)

Sets whether to notify listeners when an exception occurs on a writer operation.

This is only applicable to write through mode.

Defaults to false.

Parameters
notifyListenersOnException:boolean

true if listeners should be notified when an exception occurs on a writer operation; false otherwise

setRateLimitPerSecondback to summary
public void setRateLimitPerSecond(int rateLimitPerSecond)

Sets the maximum number of write operations to allow per second when writeBatching is enabled.

This is only applicable to write behind mode.

Defaults to 0.

Parameters
rateLimitPerSecond:int

the number of write operations to allow; use a number <=0 to disable rate limiting.

setRetryAttemptDelaySecondsback to summary
public void setRetryAttemptDelaySeconds(int retryAttemptDelaySeconds)

Sets the number of seconds to wait before retrying an failed operation.

This is only applicable to write behind mode.

Defaults to 1.

Parameters
retryAttemptDelaySeconds:int

the number of seconds to wait before retrying an operation

setRetryAttemptsback to summary
public void setRetryAttempts(int retryAttempts)

Sets the number of times the operation is retried in the CacheWriter, this happens after the original operation.

This is only applicable to write behind mode.

Defaults to 0.

Parameters
retryAttempts:int

the number of retries for a particular element

setWriteBatchingback to summary
public void setWriteBatching(boolean writeBatching)

Sets whether to batch write operations. If set to true, net.sf.ehcache.writer.CacheWriter#writeAll and CacheWriter#deleteAll will be called rather than net.sf.ehcache.writer.CacheWriter#write and net.sf.ehcache.writer.CacheWriter#delete being called for each key. Resources such as databases can perform more efficiently if updates are batched, thus reducing load.

This is only applicable to write behind mode.

Defaults to false.

Parameters
writeBatching:boolean

true if write operations should be batched; false otherwise

setWriteBatchSizeback to summary
public void setWriteBatchSize(int writeBatchSize)

Sets the number of operations to include in each batch when writeBatching is enabled. If there are less entries in the write-behind queue than the batch size, the queue length size is used.

This is only applicable to write behind mode.

Defaults to 1.

Parameters
writeBatchSize:int

the number of operations to include in each batch; numbers smaller than 1 will cause the default batch size to be used

setWriteBehindConcurrencyback to summary
public void setWriteBehindConcurrency(int concurrency)

Configures the amount of thread/bucket pairs WriteBehind should use

Parameters
concurrency:int

Amount of thread/bucket pairs, has to be at least 1

setWriteBehindMaxQueueSizeback to summary
public void setWriteBehindMaxQueueSize(final int writeBehindMaxQueueSize)

Configures the maximum amount of operations to be on the waiting queue, before it blocks

Parameters
writeBehindMaxQueueSize:int

maximum amount of operations allowed on the waiting queue

setWriteCoalescingback to summary
public void setWriteCoalescing(boolean writeCoalescing)

Sets whether to use write coalescing. If set to true and multiple operations on the same key are present in the write-behind queue, only the latest write is done, as the others are redundant. This can dramatically reduce load on the underlying resource.

This is only applicable to write behind mode.

Defaults to false.

Parameters
writeCoalescing:boolean

true to enable write coalescing; or false to disable it

setWriteModeback to summary
public void setWriteMode(String writeMode)

Converts the writeMode string argument to uppercase and looks up enum constant in WriteMode.

validateback to summary
public void validate(Collection<ConfigError> errors)

Check for errors/inconsistencies in this configuration. Add any erros found as ConfigError in the errors collection.

Parameters
errors:Collection<ConfigError>

collection to add errors to.

writeBatchingback to summary
public CacheWriterConfiguration writeBatching(boolean writeBatching)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteBatching(boolean)
writeBatchSizeback to summary
public CacheWriterConfiguration writeBatchSize(int writeBatchSize)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteBatchSize(int)
writeBehindConcurrencyback to summary
public CacheWriterConfiguration writeBehindConcurrency(int concurrency)
Parameters
concurrency:int

Amount of thread/bucket pairs, has to be at least 1

Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteBehindConcurrency(int)
writeBehindMaxQueueSizeback to summary
public CacheWriterConfiguration writeBehindMaxQueueSize(int writeBehindMaxQueueSize)
Parameters
writeBehindMaxQueueSize:int

maximum amount of operations allowed on the waiting queue

Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteBehindMaxQueueSize(int)
writeCoalescingback to summary
public CacheWriterConfiguration writeCoalescing(boolean writeCoalescing)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteCoalescing(boolean)
writeModeback to summary
public CacheWriterConfiguration writeMode(String writeMode)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteMode(String)
writeModeback to summary
public CacheWriterConfiguration writeMode(CacheWriterConfiguration.WriteMode writeMode)
Returns:CacheWriterConfiguration

this configuration instance

See Also
setWriteMode(String)
net.sf.ehcache.config back to summary

public final Class CacheWriterConfiguration.CacheWriterFactoryConfiguration

extends FactoryConfiguration<CacheWriterConfiguration.CacheWriterFactoryConfiguration>
Class Inheritance

Configuration for the CacheWriterFactoryConfiguration.

Field Summary

Inherited from net.sf.ehcache.config.FactoryConfiguration:
fullyQualifiedClassPathpropertiespropertySeparator

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides net.sf.ehcache.config.FactoryConfiguration.equals.

Overrided equals
public int
Inherited from net.sf.ehcache.config.FactoryConfiguration:
classNameclonegetFullyQualifiedClassPathgetPropertiesgetPropertySeparatorpropertiespropertySeparatorsetClasssetPropertiessetPropertySeparator

Constructor Detail

CacheWriterFactoryConfigurationback to summary
public CacheWriterFactoryConfiguration()

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides net.sf.ehcache.config.FactoryConfiguration.equals.

Overrided equals

Parameters
obj:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides net.sf.ehcache.config.FactoryConfiguration.hashCode.

Overrided hashCode()

Returns:int

Doc from java.lang.Object.hashCode.

a hash code value for this object.

Annotations
@Override
net.sf.ehcache.config back to summary

public sealed Enum CacheWriterConfiguration.WriteMode

extends Enum<CacheWriterConfiguration.WriteMode>
Class Inheritance

Represents how elements are written to the net.sf.ehcache.writer.CacheWriter

Field Summary

Modifier and TypeField and Description
public static final CacheWriterConfiguration.WriteMode
WRITE_BEHIND

Write mode enum constant that can be used to configure a cache writer to use write behind

public static final CacheWriterConfiguration.WriteMode
WRITE_THROUGH

Write mode enum constant that can be used to configure a cache writer to use write through

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public abstract CacheWriterManager

Returns:

the newly created WriterManager
createWriterManager
(Cache
the cache instance for which the WriterManager should be created
cache
,
Store store)

Create a new WriterManager for a particular cache instance

public static CacheWriterConfiguration.WriteMode
public static CacheWriterConfiguration.WriteMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

WRITE_BEHINDback to summary
public static final CacheWriterConfiguration.WriteMode WRITE_BEHIND

Write mode enum constant that can be used to configure a cache writer to use write behind

WRITE_THROUGHback to summary
public static final CacheWriterConfiguration.WriteMode WRITE_THROUGH

Write mode enum constant that can be used to configure a cache writer to use write through

Constructor Detail

WriteModeback to summary
private WriteMode()

Method Detail

createWriterManagerback to summary
public abstract CacheWriterManager createWriterManager(Cache cache, Store store)

Create a new WriterManager for a particular cache instance

Parameters
cache:Cache

the cache instance for which the WriterManager should be created

Returns:CacheWriterManager

the newly created WriterManager

valueOfback to summary
public static CacheWriterConfiguration.WriteMode valueOf(String name)
valuesback to summary
public static CacheWriterConfiguration.WriteMode[] values()