<cacheEventListenerFactory class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" properties=" replicateAsynchronously=true, replicatePuts=true replicateUpdates=true replicateUpdatesViaCopy=true replicateRemovals=true "/>
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| protected static final int | DEFAULT_ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS
A default for the amount of time the replication thread sleeps after it detects the replicationQueue is empty before checking again. |
| protected static final int | DEFAULT_ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE
A default for the maximum number of operations in an RMI message. |
| private static final Logger | |
| private static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final CacheEventListener | Returns: a constructed CacheEventListenerimplementation specific properties. These are configured as comma
separated name value pairs in ehcache.xml e.g.
properties)
Implements abstract net. CacheEventListener which is also a CacheReplicator.
|
| protected int | |
| protected boolean | extractReplicateAsynchronously(Properties properties)
Extracts the value of replicateAsynchronously from the properties |
| protected boolean | |
| protected boolean | extractReplicatePutsViaCopy(Properties properties)
Extracts the value of replicatePutsViaCopy from the properties |
| protected boolean | extractReplicateRemovals(Properties properties)
Extracts the value of replicateRemovals from the properties |
| protected boolean | extractReplicateUpdates(Properties properties)
Extracts the value of replicateUpdates from the properties |
| protected boolean | extractReplicateUpdatesViaCopy(Properties properties)
Extracts the value of replicateUpdatesViaCopy from the properties |
| protected int | extractReplicationIntervalMilis(Properties properties)
Extracts the value of asynchronousReplicationIntervalMillis. |
| ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS | back to summary |
|---|---|
| private static final String ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS | |
| ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE | back to summary |
|---|---|
| private static final String ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE | |
| DEFAULT_ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS | back to summary |
|---|---|
| protected static final int DEFAULT_ASYNCHRONOUS_REPLICATION_INTERVAL_MILLIS A default for the amount of time the replication thread sleeps after it detects the replicationQueue is empty before checking again. | |
| DEFAULT_ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE | back to summary |
|---|---|
| protected static final int DEFAULT_ASYNCHRONOUS_REPLICATION_MAXIMUM_BATCH_SIZE A default for the maximum number of operations in an RMI message. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MINIMUM_REASONABLE_INTERVAL | back to summary |
|---|---|
| private static final int MINIMUM_REASONABLE_INTERVAL | |
| REPLICATE_ASYNCHRONOUSLY | back to summary |
|---|---|
| private static final String REPLICATE_ASYNCHRONOUSLY | |
| REPLICATE_PUTS | back to summary |
|---|---|
| private static final String REPLICATE_PUTS | |
| REPLICATE_PUTS_VIA_COPY | back to summary |
|---|---|
| private static final String REPLICATE_PUTS_VIA_COPY | |
| REPLICATE_REMOVALS | back to summary |
|---|---|
| private static final String REPLICATE_REMOVALS | |
| REPLICATE_UPDATES | back to summary |
|---|---|
| private static final String REPLICATE_UPDATES | |
| REPLICATE_UPDATES_VIA_COPY | back to summary |
|---|---|
| private static final String REPLICATE_UPDATES_VIA_COPY | |
| RMICacheReplicatorFactory | back to summary |
|---|---|
| public RMICacheReplicatorFactory() | |
| createCacheEventListener | back to summary |
|---|---|
| public final CacheEventListener createCacheEventListener(Properties properties) Implements abstract net. Create a The defaults if properties are not specified are:
| |
| extractMaximumBatchSize | back to summary |
|---|---|
| protected int extractMaximumBatchSize(Properties properties) Extracts the value of maximumBatchSize. Sets it to 1024 if either not set or there is a problem parsing the number | |
| extractReplicateAsynchronously | back to summary |
|---|---|
| protected boolean extractReplicateAsynchronously(Properties properties) Extracts the value of replicateAsynchronously from the properties | |
| extractReplicatePuts | back to summary |
|---|---|
| protected boolean extractReplicatePuts(Properties properties) Extracts the value of replicatePuts from the properties | |
| extractReplicatePutsViaCopy | back to summary |
|---|---|
| protected boolean extractReplicatePutsViaCopy(Properties properties) Extracts the value of replicatePutsViaCopy from the properties | |
| extractReplicateRemovals | back to summary |
|---|---|
| protected boolean extractReplicateRemovals(Properties properties) Extracts the value of replicateRemovals from the properties | |
| extractReplicateUpdates | back to summary |
|---|---|
| protected boolean extractReplicateUpdates(Properties properties) Extracts the value of replicateUpdates from the properties | |
| extractReplicateUpdatesViaCopy | back to summary |
|---|---|
| protected boolean extractReplicateUpdatesViaCopy(Properties properties) Extracts the value of replicateUpdatesViaCopy from the properties | |
| extractReplicationIntervalMilis | back to summary |
|---|---|
| protected int extractReplicationIntervalMilis(Properties properties) Extracts the value of asynchronousReplicationIntervalMillis. Sets it to 1000ms if either not set or there is a problem parsing the number | |