| 1 |
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../main/config/ehcache.xsd"> |
| 2 |
|
| 3 |
<cacheManagerEventListenerFactory class="net.sf.ehcache.event.TestCacheManagerEventListenerFactory" |
| 4 |
properties="type=counting"/> |
| 5 |
|
| 6 |
<cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" |
| 7 |
properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=0"/> |
| 8 |
|
| 9 |
<cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" properties="hostName=localhost"/> |
| 10 |
|
| 11 |
<defaultCache maxElementsInMemory="0" eternal="true"> |
| 12 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 13 |
properties="replicateAsynchronously=true, |
| 14 |
replicatePuts=true, |
| 15 |
replicateUpdates=true, |
| 16 |
replicateUpdatesViaCopy=true, |
| 17 |
replicateRemovals=true "/> |
| 18 |
</defaultCache> |
| 19 |
|
| 20 |
<!-- Sample cache named sampleCache1 --> |
| 21 |
<cache name="sampleCache1" maxElementsInMemory="0" eternal="true"> |
| 22 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 23 |
properties="replicateAsynchronously=true, |
| 24 |
replicatePuts=true, |
| 25 |
replicateUpdates=true, |
| 26 |
replicateUpdatesViaCopy=true, |
| 27 |
replicateRemovals=true "/> |
| 28 |
<cacheEventListenerFactory class="net.sf.ehcache.event.CountingCacheEventListenerFactory"/> |
| 29 |
<bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
| 30 |
properties="bootstrapAsynchronously=true, |
| 31 |
maximumChunkSizeBytes=5000000"/> |
| 32 |
</cache> |
| 33 |
|
| 34 |
<!-- Sample cache named sampleCache2. This one has a 10ms cache replication interval. --> |
| 35 |
<cache name="sampleCache2" maxElementsInMemory="0" eternal="true"> |
| 36 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 37 |
properties="replicateAsynchronously=true, |
| 38 |
replicatePuts=true, |
| 39 |
replicatePutsViaCopy=false, |
| 40 |
replicateUpdates=true, |
| 41 |
replicateUpdatesViaCopy=false, |
| 42 |
replicateRemovals=true, |
| 43 |
asynchronousReplicationIntervalMillis=10"/> |
| 44 |
<bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
| 45 |
properties="bootstrapAsynchronously=false, |
| 46 |
maximumChunkSizeBytes=5000000"/> |
| 47 |
</cache> |
| 48 |
|
| 49 |
<!-- Sample cache named sampleCache3. It is set for synchronous replication. --> |
| 50 |
<cache name="sampleCache3" maxElementsInMemory="0" eternal="true"> |
| 51 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 52 |
properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 53 |
<bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" /> |
| 54 |
</cache> |
| 55 |
|
| 56 |
<!-- Sample cache named sampleCache4. All missing RMICacheReplicatorFactory properties default to true --> |
| 57 |
<cache name="sampleCache4" maxElementsInMemory="0" eternal="true"> |
| 58 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"/> |
| 59 |
<bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
| 60 |
properties="bootstrapAsynchronously=false, |
| 61 |
maximumChunkSizeBytes=10000"/> |
| 62 |
</cache> |
| 63 |
|
| 64 |
<!-- Sample cache names sampleCache5. The missing replicatePuts will default to true --> |
| 65 |
<cache name="sampleCache5" maxElementsInMemory="0" eternal="true"> |
| 66 |
<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 67 |
properties="replicateAsynchronously=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true "/> |
| 68 |
</cache> |
| 69 |
</ehcache> |