You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by pr...@apache.org on 2018/01/31 19:24:53 UTC
[geode] branch develop updated: GEODE-4429: Remove unnecessary
modifiers from interfaces in geode-core:cache
This is an automated email from the ASF dual-hosted git repository.
prhomberg pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new de9d814 GEODE-4429: Remove unnecessary modifiers from interfaces in geode-core:cache
de9d814 is described below
commit de9d814ea1a313a2ad36ab062d8b4e1225b766d0
Author: Patrick Rhomberg <Pu...@users.noreply.github.com>
AuthorDate: Wed Jan 31 11:24:50 2018 -0800
GEODE-4429: Remove unnecessary modifiers from interfaces in geode-core:cache
* This excludes those interfaces in geode-core:internal.cache, as covered in GEODE-4430
---
.../org/apache/geode/cache/AttributesMutator.java | 38 ++--
.../java/org/apache/geode/cache/CacheCallback.java | 2 +-
.../java/org/apache/geode/cache/CacheEvent.java | 13 +-
.../java/org/apache/geode/cache/CacheListener.java | 18 +-
.../java/org/apache/geode/cache/CacheLoader.java | 2 +-
.../org/apache/geode/cache/CacheStatistics.java | 12 +-
.../geode/cache/CacheTransactionManager.java | 42 ++---
.../java/org/apache/geode/cache/CacheWriter.java | 10 +-
.../java/org/apache/geode/cache/ClientSession.java | 18 +-
.../java/org/apache/geode/cache/CustomExpiry.java | 2 +-
.../java/org/apache/geode/cache/Declarable.java | 2 +-
.../java/org/apache/geode/cache/DiskStore.java | 38 ++--
.../org/apache/geode/cache/DiskStoreFactory.java | 50 ++---
.../apache/geode/cache/DiskWriteAttributes.java | 12 +-
.../apache/geode/cache/DynamicRegionListener.java | 8 +-
.../java/org/apache/geode/cache/EntryEvent.java | 16 +-
.../org/apache/geode/cache/EntryOperation.java | 12 +-
.../geode/cache/EvictionAttributesMutator.java | 2 +-
.../apache/geode/cache/FixedPartitionResolver.java | 3 +-
.../java/org/apache/geode/cache/GemFireCache.java | 46 ++---
.../geode/cache/InterestRegistrationEvent.java | 16 +-
.../geode/cache/InterestRegistrationListener.java | 4 +-
.../java/org/apache/geode/cache/LoaderHelper.java | 8 +-
.../apache/geode/cache/PartitionAttributes.java | 27 ++-
.../org/apache/geode/cache/PartitionResolver.java | 4 +-
.../main/java/org/apache/geode/cache/Region.java | 209 ++++++++++-----------
.../org/apache/geode/cache/RegionAttributes.java | 92 ++++-----
.../java/org/apache/geode/cache/RegionEvent.java | 2 +-
.../geode/cache/RegionMembershipListener.java | 8 +-
.../org/apache/geode/cache/RegionRoleListener.java | 4 +-
.../java/org/apache/geode/cache/RegionService.java | 16 +-
.../java/org/apache/geode/cache/RoleEvent.java | 2 +-
.../apache/geode/cache/SerializedCacheValue.java | 4 +-
.../org/apache/geode/cache/TransactionEvent.java | 8 +-
.../apache/geode/cache/TransactionListener.java | 6 +-
.../org/apache/geode/cache/TransactionWriter.java | 2 +-
.../apache/geode/cache/asyncqueue/AsyncEvent.java | 4 +-
.../geode/cache/asyncqueue/AsyncEventListener.java | 2 +-
.../geode/cache/asyncqueue/AsyncEventQueue.java | 34 ++--
.../cache/asyncqueue/AsyncEventQueueFactory.java | 34 ++--
.../org/apache/geode/cache/client/ClientCache.java | 25 +--
.../geode/cache/client/ClientRegionFactory.java | 47 +++--
.../java/org/apache/geode/cache/client/Pool.java | 60 +++---
.../org/apache/geode/cache/client/PoolFactory.java | 90 ++++-----
.../geode/cache/client/internal/AbstractOp.java | 2 +-
.../geode/cache/client/internal/ClientUpdater.java | 6 +-
.../geode/cache/client/internal/Connection.java | 38 ++--
.../cache/client/internal/EndpointManager.java | 10 +-
.../cache/client/internal/ExecutablePool.java | 29 ++-
.../geode/cache/client/internal/QueueManager.java | 18 +-
.../geode/cache/client/internal/QueueState.java | 14 +-
.../cache/client/internal/ServerBlackList.java | 12 +-
.../client/internal/ServerRegionDataAccess.java | 38 ++--
.../locator/wan/LocatorMembershipListener.java | 16 +-
.../client/internal/pooling/ConnectionManager.java | 8 +-
.../geode/cache/control/RebalanceFactory.java | 4 +-
.../geode/cache/control/RebalanceOperation.java | 10 +-
.../geode/cache/control/RebalanceResults.java | 20 +-
.../geode/cache/control/ResourceManager.java | 24 +--
.../org/apache/geode/cache/execute/Execution.java | 12 +-
.../geode/cache/execute/FunctionContext.java | 12 +-
.../geode/cache/execute/RegionFunctionContext.java | 4 +-
.../geode/cache/execute/ResultCollector.java | 10 +-
.../apache/geode/cache/execute/ResultSender.java | 6 +-
.../geode/cache/partition/PartitionListener.java | 10 +-
.../geode/cache/partition/PartitionMemberInfo.java | 10 +-
.../cache/partition/PartitionRebalanceInfo.java | 30 +--
.../geode/cache/partition/PartitionRegionInfo.java | 18 +-
.../geode/cache/persistence/PersistentID.java | 6 +-
.../org/apache/geode/cache/query/Aggregator.java | 6 +-
.../org/apache/geode/cache/query/CqAttributes.java | 4 +-
.../geode/cache/query/CqAttributesMutator.java | 6 +-
.../java/org/apache/geode/cache/query/CqEvent.java | 14 +-
.../org/apache/geode/cache/query/CqListener.java | 4 +-
.../java/org/apache/geode/cache/query/CqQuery.java | 30 +--
.../geode/cache/query/CqServiceStatistics.java | 12 +-
.../java/org/apache/geode/cache/query/CqState.java | 10 +-
.../org/apache/geode/cache/query/CqStatistics.java | 8 +-
.../apache/geode/cache/query/CqStatusListener.java | 4 +-
.../java/org/apache/geode/cache/query/Index.java | 24 +--
.../apache/geode/cache/query/IndexStatistics.java | 18 +-
.../java/org/apache/geode/cache/query/Query.java | 21 +--
.../org/apache/geode/cache/query/QueryService.java | 81 ++++----
.../apache/geode/cache/query/QueryStatistics.java | 4 +-
.../apache/geode/cache/query/SelectResults.java | 19 +-
.../java/org/apache/geode/cache/query/Struct.java | 6 +-
.../apache/geode/cache/query/internal/Filter.java | 37 ++--
.../cache/query/internal/HashingStrategy.java | 4 +-
.../geode/cache/query/internal/Negatable.java | 2 +-
.../geode/cache/query/internal/QueryExecutor.java | 4 +-
.../geode/cache/query/internal/StructFields.java | 10 +-
.../geode/cache/query/internal/cq/ClientCQ.java | 7 +-
.../geode/cache/query/internal/cq/CqService.java | 77 ++++----
.../cache/query/internal/cq/InternalCqQuery.java | 29 ++-
.../geode/cache/query/internal/cq/ServerCQ.java | 24 +--
.../cache/query/internal/index/IndexManager.java | 2 +-
.../cache/query/internal/index/IndexProtocol.java | 19 +-
.../cache/query/internal/index/IndexStore.java | 42 ++---
.../internal/index/IndexedExpressionEvaluator.java | 17 +-
.../geode/cache/query/types/CollectionType.java | 6 +-
.../apache/geode/cache/query/types/MapType.java | 4 +-
.../apache/geode/cache/query/types/ObjectType.java | 10 +-
.../apache/geode/cache/query/types/StructType.java | 2 +-
.../org/apache/geode/cache/server/CacheServer.java | 104 +++++-----
.../cache/server/ClientSubscriptionConfig.java | 22 +--
.../cache/snapshot/RegionSnapshotService.java | 2 +-
.../geode/cache/util/GatewayConflictHelper.java | 4 +-
.../geode/cache/util/GatewayConflictResolver.java | 2 +-
.../org/apache/geode/cache/util/GatewayEvent.java | 18 +-
.../org/apache/geode/cache/util/ObjectSizer.java | 8 +-
.../geode/cache/util/TimestampedEntryEvent.java | 8 +-
.../apache/geode/cache/wan/GatewayEventFilter.java | 6 +-
.../cache/wan/GatewayEventSubstitutionFilter.java | 2 +-
.../apache/geode/cache/wan/GatewayQueueEvent.java | 12 +-
.../apache/geode/cache/wan/GatewayReceiver.java | 46 ++---
.../geode/cache/wan/GatewayReceiverFactory.java | 20 +-
.../org/apache/geode/cache/wan/GatewaySender.java | 113 ++++++-----
.../geode/cache/wan/GatewaySenderFactory.java | 43 +++--
.../geode/cache/wan/GatewayTransportFilter.java | 4 +-
119 files changed, 1192 insertions(+), 1210 deletions(-)
diff --git a/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java b/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
index 21d6919..46f479c 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/AttributesMutator.java
@@ -38,7 +38,7 @@ public interface AttributesMutator<K, V> {
*
* @return the Region this mutator affects
*/
- public Region<K, V> getRegion();
+ Region<K, V> getRegion();
/**
* Changes the timeToLive expiration attributes for the region as a whole
@@ -49,7 +49,7 @@ public interface AttributesMutator<K, V> {
* LOCAL_INVALIDATE and the region is {@link DataPolicy#withReplication replicated}
* @throws IllegalStateException if statistics are disabled for this region.
*/
- public ExpirationAttributes setRegionTimeToLive(ExpirationAttributes timeToLive);
+ ExpirationAttributes setRegionTimeToLive(ExpirationAttributes timeToLive);
/**
* Changes the idleTimeout expiration attributes for the region as a whole. Resets the
@@ -61,7 +61,7 @@ public interface AttributesMutator<K, V> {
* LOCAL_INVALIDATE and the region is {@link DataPolicy#withReplication replicated}
* @throws IllegalStateException if statistics are disabled for this region.
*/
- public ExpirationAttributes setRegionIdleTimeout(ExpirationAttributes idleTimeout);
+ ExpirationAttributes setRegionIdleTimeout(ExpirationAttributes idleTimeout);
/**
* Changes the timeToLive expiration attributes for values in this region.
@@ -74,7 +74,7 @@ public interface AttributesMutator<K, V> {
* {@link DataPolicy#withReplication replicated}
* @throws IllegalStateException if statistics are disabled for this region.
*/
- public ExpirationAttributes setEntryTimeToLive(ExpirationAttributes timeToLive);
+ ExpirationAttributes setEntryTimeToLive(ExpirationAttributes timeToLive);
/**
* Changes the custom timeToLive for values in this region
@@ -82,7 +82,7 @@ public interface AttributesMutator<K, V> {
* @param custom the new CustomExpiry
* @return the old CustomExpiry
*/
- public CustomExpiry<K, V> setCustomEntryTimeToLive(CustomExpiry<K, V> custom);
+ CustomExpiry<K, V> setCustomEntryTimeToLive(CustomExpiry<K, V> custom);
/**
* Changes the idleTimeout expiration attributes for values in the region.
@@ -96,7 +96,7 @@ public interface AttributesMutator<K, V> {
* @see AttributesFactory#setStatisticsEnabled
* @throws IllegalStateException if statistics are disabled for this region.
*/
- public ExpirationAttributes setEntryIdleTimeout(ExpirationAttributes idleTimeout);
+ ExpirationAttributes setEntryIdleTimeout(ExpirationAttributes idleTimeout);
/**
* Changes the CustomExpiry for idleTimeout for values in the region
@@ -104,7 +104,7 @@ public interface AttributesMutator<K, V> {
* @param custom the new CustomExpiry
* @return the old CustomExpiry
*/
- public CustomExpiry<K, V> setCustomEntryIdleTimeout(CustomExpiry<K, V> custom);
+ CustomExpiry<K, V> setCustomEntryIdleTimeout(CustomExpiry<K, V> custom);
/**
* Adds a cache listener to the end of the list of cache listeners on this region.
@@ -113,7 +113,7 @@ public interface AttributesMutator<K, V> {
* @throws IllegalArgumentException if <code>aListener</code> is null
* @since GemFire 5.0
*/
- public void addCacheListener(CacheListener<K, V> aListener);
+ void addCacheListener(CacheListener<K, V> aListener);
/**
* Removes a cache listener from the list of cache listeners on this region. Does nothing if the
@@ -124,7 +124,7 @@ public interface AttributesMutator<K, V> {
* @throws IllegalArgumentException if <code>aListener</code> is null
* @since GemFire 5.0
*/
- public void removeCacheListener(CacheListener<K, V> aListener);
+ void removeCacheListener(CacheListener<K, V> aListener);
/**
* Removes all cache listeners, calling {@link CacheCallback#close} on each of them, and then adds
@@ -134,7 +134,7 @@ public interface AttributesMutator<K, V> {
* @throws IllegalArgumentException if the <code>newListeners</code> array has a null element
* @since GemFire 5.0
*/
- public void initCacheListeners(CacheListener<K, V>[] newListeners);
+ void initCacheListeners(CacheListener<K, V>[] newListeners);
/**
* Changes the cache writer for the region.
@@ -142,7 +142,7 @@ public interface AttributesMutator<K, V> {
* @param cacheWriter the cache writer
* @return the previous CacheWriter
*/
- public CacheWriter<K, V> setCacheWriter(CacheWriter<K, V> cacheWriter);
+ CacheWriter<K, V> setCacheWriter(CacheWriter<K, V> cacheWriter);
/**
* Changes the cache loader for the region.
@@ -154,7 +154,7 @@ public interface AttributesMutator<K, V> {
* @param cacheLoader the cache loader
* @return the previous CacheLoader
*/
- public CacheLoader<K, V> setCacheLoader(CacheLoader<K, V> cacheLoader);
+ CacheLoader<K, V> setCacheLoader(CacheLoader<K, V> cacheLoader);
/**
@@ -162,7 +162,7 @@ public interface AttributesMutator<K, V> {
*
* @return the {@link EvictionAttributesMutator} used to change the EvictionAttributes
*/
- public EvictionAttributesMutator getEvictionAttributesMutator();
+ EvictionAttributesMutator getEvictionAttributesMutator();
/**
* Sets cloning on region Note: off-heap regions always behave as if cloning is enabled.
@@ -170,7 +170,7 @@ public interface AttributesMutator<K, V> {
* @param cloningEnable
* @since GemFire 6.1
*/
- public void setCloningEnabled(boolean cloningEnable);
+ void setCloningEnabled(boolean cloningEnable);
/**
* Returns whether or not cloning is enabled on region
@@ -179,7 +179,7 @@ public interface AttributesMutator<K, V> {
*
* @since GemFire 6.1
*/
- public boolean getCloningEnabled();
+ boolean getCloningEnabled();
/**
* Adds GatewaySenderId to the list of GatewaySenderIds of the region. If the GatewaySenderId is
@@ -187,26 +187,26 @@ public interface AttributesMutator<K, V> {
*
* @param gatewaySenderId
*/
- public void addGatewaySenderId(String gatewaySenderId);
+ void addGatewaySenderId(String gatewaySenderId);
/**
* Removes GatewaySenderId from the list of GatewaySenderIds of the region.
*
* @param gatewaySenderId
*/
- public void removeGatewaySenderId(String gatewaySenderId);
+ void removeGatewaySenderId(String gatewaySenderId);
/**
* Adds AsyncEventQueueId to the list of AsyncEventQueueId of the region.
*
* @param asyncEventQueueId
*/
- public void addAsyncEventQueueId(String asyncEventQueueId);
+ void addAsyncEventQueueId(String asyncEventQueueId);
/**
* Removes AsyncEventQueueId from the list of AsyncEventQueuesId of the region.
*
* @param asyncEventQueueId
*/
- public void removeAsyncEventQueueId(String asyncEventQueueId);
+ void removeAsyncEventQueueId(String asyncEventQueueId);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheCallback.java b/geode-core/src/main/java/org/apache/geode/cache/CacheCallback.java
index fdcdb26..6eee1a1 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheCallback.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheCallback.java
@@ -40,5 +40,5 @@ public interface CacheCallback extends Declarable {
* @see Region#destroyRegion()
* @see AttributesMutator
*/
- public void close();
+ void close();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheEvent.java b/geode-core/src/main/java/org/apache/geode/cache/CacheEvent.java
index 931faa6..f7b3b31 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheEvent.java
@@ -16,7 +16,6 @@
package org.apache.geode.cache;
import org.apache.geode.distributed.DistributedMember;
-import org.apache.geode.internal.cache.EnumListenerEvent;
/**
* A region- or entry-related event affecting the cache.
@@ -41,7 +40,7 @@ public interface CacheEvent<K, V> {
*
* @return the region associated with this object or the region that raised this event.
*/
- public Region<K, V> getRegion();
+ Region<K, V> getRegion();
/**
* Return a description of the operation that triggered this event.
@@ -49,7 +48,7 @@ public interface CacheEvent<K, V> {
* @return the operation that triggered this event.
* @since GemFire 5.0
*/
- public Operation getOperation();
+ Operation getOperation();
/**
* Returns the callbackArgument passed to the method that generated this event. Provided primarily
@@ -61,7 +60,7 @@ public interface CacheEvent<K, V> {
* {@link TransactionListener} and to {@link CacheListener} on the remote side of a
* transaction commit.
*/
- public Object getCallbackArgument();
+ Object getCallbackArgument();
/**
* Returns <code>true</code> if the callback argument is "available". Not available means that the
@@ -71,7 +70,7 @@ public interface CacheEvent<K, V> {
*
* @since GemFire 6.0
*/
- public boolean isCallbackArgumentAvailable();
+ boolean isCallbackArgumentAvailable();
/**
* Answer true if this event originated in a cache other than this one. Answer false if this event
@@ -80,7 +79,7 @@ public interface CacheEvent<K, V> {
* @return true if this event originated remotely
*
*/
- public boolean isOriginRemote();
+ boolean isOriginRemote();
/**
* Returns the {@link DistributedMember} that this event originated in.
@@ -88,6 +87,6 @@ public interface CacheEvent<K, V> {
* @return the member that performed the operation that originated this event.
* @since GemFire 5.0
*/
- public DistributedMember getDistributedMember();
+ DistributedMember getDistributedMember();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheListener.java b/geode-core/src/main/java/org/apache/geode/cache/CacheListener.java
index fd268ea..f9093a3 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheListener.java
@@ -77,7 +77,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @see Region#put(Object, Object)
* @see Region#get(Object)
*/
- public void afterCreate(EntryEvent<K, V> event);
+ void afterCreate(EntryEvent<K, V> event);
/**
* Handles the event of an entry's value being modified in a region. This entry previously existed
@@ -86,7 +86,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @param event the EntryEvent
* @see Region#put(Object, Object)
*/
- public void afterUpdate(EntryEvent<K, V> event);
+ void afterUpdate(EntryEvent<K, V> event);
/**
* Handles the event of an entry's value being invalidated.
@@ -94,7 +94,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @param event the EntryEvent
* @see Region#invalidate(Object)
*/
- public void afterInvalidate(EntryEvent<K, V> event);
+ void afterInvalidate(EntryEvent<K, V> event);
/**
* Handles the event of an entry being destroyed.
@@ -102,7 +102,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @param event the EntryEvent
* @see Region#destroy(Object)
*/
- public void afterDestroy(EntryEvent<K, V> event);
+ void afterDestroy(EntryEvent<K, V> event);
/**
* Handles the event of a region being invalidated. Events are not invoked for each individual
@@ -113,7 +113,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @see Region#invalidateRegion()
* @see Region#localInvalidateRegion()
*/
- public void afterRegionInvalidate(RegionEvent<K, V> event);
+ void afterRegionInvalidate(RegionEvent<K, V> event);
/**
* Handles the event of a region being destroyed. Events are not invoked for each individual entry
@@ -126,7 +126,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @see Region#close
* @see Cache#close()
*/
- public void afterRegionDestroy(RegionEvent<K, V> event);
+ void afterRegionDestroy(RegionEvent<K, V> event);
/**
* Handles the event of a region being cleared. Events are not invoked for each individual entry
@@ -137,7 +137,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @see Region#clear
* @since GemFire 5.0
*/
- public void afterRegionClear(RegionEvent<K, V> event);
+ void afterRegionClear(RegionEvent<K, V> event);
/**
* Handles the event of a region being created. Events are invoked for each individual region that
@@ -152,7 +152,7 @@ public interface CacheListener<K, V> extends CacheCallback {
* @see Region#createSubregion
* @since GemFire 5.0
*/
- public void afterRegionCreate(RegionEvent<K, V> event);
+ void afterRegionCreate(RegionEvent<K, V> event);
/**
* Handles the event of a region being live after receiving the marker from the server.
@@ -162,5 +162,5 @@ public interface CacheListener<K, V> extends CacheCallback {
* @see Cache#readyForEvents
* @since GemFire 5.5
*/
- public void afterRegionLive(RegionEvent<K, V> event);
+ void afterRegionLive(RegionEvent<K, V> event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheLoader.java b/geode-core/src/main/java/org/apache/geode/cache/CacheLoader.java
index 9c7a25d..735f76b 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheLoader.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheLoader.java
@@ -54,5 +54,5 @@ public interface CacheLoader<K, V> extends CacheCallback {
*
* @see Region#get(Object, Object) Region.get
*/
- public V load(LoaderHelper<K, V> helper) throws CacheLoaderException;
+ V load(LoaderHelper<K, V> helper) throws CacheLoaderException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheStatistics.java b/geode-core/src/main/java/org/apache/geode/cache/CacheStatistics.java
index fdccf9c..1c51ba5 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheStatistics.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheStatistics.java
@@ -48,7 +48,7 @@ public interface CacheStatistics {
* @see Region#create(Object, Object)
* @see Region#createSubregion
*/
- public long getLastModifiedTime();
+ long getLastModifiedTime();
/**
* For an entry, returns the last time it was accessed via <code>Region.get</code>; for a region,
@@ -67,7 +67,7 @@ public interface CacheStatistics {
* @see #getLastModifiedTime
* @throws StatisticsDisabledException if statistics are not available
*/
- public long getLastAccessedTime() throws StatisticsDisabledException;
+ long getLastAccessedTime() throws StatisticsDisabledException;
/**
* Returns the number of times that {@link Region#get(Object) Region.get} on the region or the
@@ -78,7 +78,7 @@ public interface CacheStatistics {
* @return the number of cache misses on the region or the entry.
* @throws StatisticsDisabledException if statistics are not available
*/
- public long getMissCount() throws StatisticsDisabledException;
+ long getMissCount() throws StatisticsDisabledException;
/**
* Returns the number of hits for this region or entry. The number of hits is defined as the
@@ -89,7 +89,7 @@ public interface CacheStatistics {
* @return the number of hits for this region or entry.
* @throws StatisticsDisabledException if statistics are not available
*/
- public long getHitCount() throws StatisticsDisabledException;
+ long getHitCount() throws StatisticsDisabledException;
/**
* Return the hit ratio, a convenience method defined as the ratio of hits to the number of calls
@@ -107,7 +107,7 @@ public interface CacheStatistics {
* @throws StatisticsDisabledException if statistics are not available
* @return the hit ratio as a float
*/
- public float getHitRatio() throws StatisticsDisabledException;
+ float getHitRatio() throws StatisticsDisabledException;
/**
@@ -115,5 +115,5 @@ public interface CacheStatistics {
*
* @throws StatisticsDisabledException if statistics are not available
*/
- public void resetCounts() throws StatisticsDisabledException;
+ void resetCounts() throws StatisticsDisabledException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheTransactionManager.java b/geode-core/src/main/java/org/apache/geode/cache/CacheTransactionManager.java
index 672d695..fc5527f 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheTransactionManager.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheTransactionManager.java
@@ -112,7 +112,7 @@ public interface CacheTransactionManager {
*
* @since GemFire 4.0
*/
- public void begin();
+ void begin();
/**
* Commit the transaction associated with the current thread. If the commit operation fails due to
@@ -136,7 +136,7 @@ public interface CacheTransactionManager {
* transaction and which have not. This only occurs if nodes fail mid-commit, and only
* then in very rare circumstances.
*/
- public void commit() throws CommitConflictException;
+ void commit() throws CommitConflictException;
/**
* Roll back the transaction associated with the current thread. When this method completes, the
@@ -146,7 +146,7 @@ public interface CacheTransactionManager {
*
* @throws IllegalStateException if the thread is not associated with a transaction
*/
- public void rollback();
+ void rollback();
/**
* Suspends the transaction on the current thread. All subsequent operations performed by this
@@ -157,7 +157,7 @@ public interface CacheTransactionManager {
* associated with a transaction
* @since GemFire 6.6.2
*/
- public TransactionId suspend();
+ TransactionId suspend();
/**
* On the current thread, resumes a transaction that was previously suspended using
@@ -169,7 +169,7 @@ public interface CacheTransactionManager {
* @since GemFire 6.6.2
* @see #tryResume(TransactionId)
*/
- public void resume(TransactionId transactionId);
+ void resume(TransactionId transactionId);
/**
* This method can be used to determine if a transaction with the given transaction identifier is
@@ -180,7 +180,7 @@ public interface CacheTransactionManager {
* @since GemFire 6.6.2
* @see #exists(TransactionId)
*/
- public boolean isSuspended(TransactionId transactionId);
+ boolean isSuspended(TransactionId transactionId);
/**
* On the current thread, resumes a transaction that was previously suspended using
@@ -200,7 +200,7 @@ public interface CacheTransactionManager {
* @return true if the transaction was resumed, false otherwise
* @since GemFire 6.6.2
*/
- public boolean tryResume(TransactionId transactionId);
+ boolean tryResume(TransactionId transactionId);
/**
* On the current thread, resumes a transaction that was previously suspended using
@@ -221,7 +221,7 @@ public interface CacheTransactionManager {
* @since GemFire 6.6.2
* @see #tryResume(TransactionId)
*/
- public boolean tryResume(TransactionId transactionId, long time, TimeUnit unit);
+ boolean tryResume(TransactionId transactionId, long time, TimeUnit unit);
/**
* Reports the existence of a transaction for the given transactionId. This method can be used to
@@ -233,7 +233,7 @@ public interface CacheTransactionManager {
* @since GemFire 6.6.2
* @see #isSuspended(TransactionId)
*/
- public boolean exists(TransactionId transactionId);
+ boolean exists(TransactionId transactionId);
/**
* Reports the existence of a Transaction for this thread
@@ -242,7 +242,7 @@ public interface CacheTransactionManager {
*
* @since GemFire 4.0
*/
- public boolean exists();
+ boolean exists();
/**
* Returns the transaction identifier for the current thread
@@ -251,7 +251,7 @@ public interface CacheTransactionManager {
*
* @since GemFire 4.0
*/
- public TransactionId getTransactionId();
+ TransactionId getTransactionId();
/**
* Gets the transaction listener for this Cache.
@@ -261,7 +261,7 @@ public interface CacheTransactionManager {
* @deprecated as of GemFire 5.0, use {@link #getListeners} instead
*/
@Deprecated
- public TransactionListener getListener();
+ TransactionListener getListener();
/**
* Returns an array of all the transaction listeners on this cache. Modifications to the returned
@@ -270,7 +270,7 @@ public interface CacheTransactionManager {
* @return the cache's <code>TransactionListener</code>s; an empty array if no listeners
* @since GemFire 5.0
*/
- public TransactionListener[] getListeners();
+ TransactionListener[] getListeners();
/**
* Sets the transaction listener for this Cache.
@@ -282,7 +282,7 @@ public interface CacheTransactionManager {
* @deprecated as of GemFire 5.0, use {@link #addListener} or {@link #initListeners} instead.
*/
@Deprecated
- public TransactionListener setListener(TransactionListener newListener);
+ TransactionListener setListener(TransactionListener newListener);
/**
* Adds a transaction listener to the end of the list of transaction listeners on this cache.
@@ -291,7 +291,7 @@ public interface CacheTransactionManager {
* @throws IllegalArgumentException if <code>aListener</code> is null
* @since GemFire 5.0
*/
- public void addListener(TransactionListener aListener);
+ void addListener(TransactionListener aListener);
/**
* Removes a transaction listener from the list of transaction listeners on this cache. Does
@@ -302,7 +302,7 @@ public interface CacheTransactionManager {
* @throws IllegalArgumentException if <code>aListener</code> is null
* @since GemFire 5.0
*/
- public void removeListener(TransactionListener aListener);
+ void removeListener(TransactionListener aListener);
/**
* Removes all transaction listeners, calling {@link CacheCallback#close} on each of them, and
@@ -312,7 +312,7 @@ public interface CacheTransactionManager {
* @throws IllegalArgumentException if the <code>newListeners</code> array has a null element
* @since GemFire 5.0
*/
- public void initListeners(TransactionListener[] newListeners);
+ void initListeners(TransactionListener[] newListeners);
/**
* Set the TransactionWriter for the cache
@@ -321,7 +321,7 @@ public interface CacheTransactionManager {
* @see TransactionWriter
* @since GemFire 6.5
*/
- public void setWriter(TransactionWriter writer);
+ void setWriter(TransactionWriter writer);
/**
* Returns the current {@link TransactionWriter}
@@ -330,7 +330,7 @@ public interface CacheTransactionManager {
* @return the current {@link TransactionWriter}
* @since GemFire 6.5
*/
- public TransactionWriter getWriter();
+ TransactionWriter getWriter();
/**
* Sets whether transactions should be executed in distributed or non-distributed mode. Once set
@@ -340,7 +340,7 @@ public interface CacheTransactionManager {
* distributed mode to a different value.
* @since Geode 1.0
*/
- public void setDistributed(boolean distributed);
+ void setDistributed(boolean distributed);
/**
* Returns the execution mode of transactions
@@ -348,5 +348,5 @@ public interface CacheTransactionManager {
* @return true if distributed, false otherwise.
* @since Geode 1.0
*/
- public boolean isDistributed();
+ boolean isDistributed();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java b/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
index a60a4b8..dcff24c 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheWriter.java
@@ -62,7 +62,7 @@ public interface CacheWriter<K, V> extends CacheCallback {
* @see Region#put(Object, Object)
* @see Region#get(Object)
*/
- public void beforeUpdate(EntryEvent<K, V> event) throws CacheWriterException;
+ void beforeUpdate(EntryEvent<K, V> event) throws CacheWriterException;
/**
* Called before an entry is created. Entry creation is initiated by a <code>create</code>, a
@@ -79,7 +79,7 @@ public interface CacheWriter<K, V> extends CacheCallback {
* @see Region#put(Object, Object)
* @see Region#get(Object)
*/
- public void beforeCreate(EntryEvent<K, V> event) throws CacheWriterException;
+ void beforeCreate(EntryEvent<K, V> event) throws CacheWriterException;
/**
* Called before an entry is destroyed. The entry being destroyed may or may not exist in the
@@ -92,7 +92,7 @@ public interface CacheWriter<K, V> extends CacheCallback {
*
* @see Region#destroy(Object)
*/
- public void beforeDestroy(EntryEvent<K, V> event) throws CacheWriterException;
+ void beforeDestroy(EntryEvent<K, V> event) throws CacheWriterException;
/**
* Called before a region is destroyed. The <code>CacheWriter</code> will not additionally be
@@ -113,7 +113,7 @@ public interface CacheWriter<K, V> extends CacheCallback {
*
* @see Region#destroyRegion()
*/
- public void beforeRegionDestroy(RegionEvent<K, V> event) throws CacheWriterException;
+ void beforeRegionDestroy(RegionEvent<K, V> event) throws CacheWriterException;
/**
* Called before a region is cleared. The <code>CacheWriter</code> will not additionally be called
@@ -130,5 +130,5 @@ public interface CacheWriter<K, V> extends CacheCallback {
*
* @see Region#clear
*/
- public void beforeRegionClear(RegionEvent<K, V> event) throws CacheWriterException;
+ void beforeRegionClear(RegionEvent<K, V> event) throws CacheWriterException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/ClientSession.java b/geode-core/src/main/java/org/apache/geode/cache/ClientSession.java
index d0c7fcf..027177c 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/ClientSession.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/ClientSession.java
@@ -51,7 +51,7 @@ public interface ClientSession {
* @param isDurable Whether the interest is durable
* @throws IllegalStateException if this is not the primary server for the given client
*/
- public void registerInterest(String regionName, Object keyOfInterest, InterestResultPolicy policy,
+ void registerInterest(String regionName, Object keyOfInterest, InterestResultPolicy policy,
boolean isDurable);
/**
@@ -67,7 +67,7 @@ public interface ClientSession {
* @throws IllegalStateException if this is not the primary server for the given client
* @since GemFire 6.5
*/
- public void registerInterest(String regionName, Object keyOfInterest, InterestResultPolicy policy,
+ void registerInterest(String regionName, Object keyOfInterest, InterestResultPolicy policy,
boolean isDurable, boolean receiveValues);
/**
@@ -78,7 +78,7 @@ public interface ClientSession {
* @param isDurable Whether the interest is durable
* @throws IllegalStateException if this is not the primary server for the given client
*/
- public void registerInterestRegex(String regionName, String regex, boolean isDurable);
+ void registerInterestRegex(String regionName, String regex, boolean isDurable);
/**
* Registers interest in a particular region and regular expression
@@ -91,7 +91,7 @@ public interface ClientSession {
* @throws IllegalStateException if this is not the primary server for the given client
* @since GemFire 6.5
*/
- public void registerInterestRegex(String regionName, String regex, boolean isDurable,
+ void registerInterestRegex(String regionName, String regex, boolean isDurable,
boolean receiveValues);
/**
@@ -102,7 +102,7 @@ public interface ClientSession {
* @param isDurable Whether the interest is durable
* @throws IllegalStateException if this is not the primary server for the given client
*/
- public void unregisterInterest(String regionName, Object keyOfInterest, boolean isDurable);
+ void unregisterInterest(String regionName, Object keyOfInterest, boolean isDurable);
/**
* Unregisters interest in a particular region and key
@@ -115,7 +115,7 @@ public interface ClientSession {
* @throws IllegalStateException if this is not the primary server for the given client
* @since GemFire 6.5
*/
- public void unregisterInterest(String regionName, Object keyOfInterest, boolean isDurable,
+ void unregisterInterest(String regionName, Object keyOfInterest, boolean isDurable,
boolean receiveValues);
/**
@@ -126,7 +126,7 @@ public interface ClientSession {
* @param isDurable Whether the interest is durable
* @throws IllegalStateException if this is not the primary server for the given client
*/
- public void unregisterInterestRegex(String regionName, String regex, boolean isDurable);
+ void unregisterInterestRegex(String regionName, String regex, boolean isDurable);
/**
* Unregisters interest in a particular region and regular expression
@@ -139,7 +139,7 @@ public interface ClientSession {
* @throws IllegalStateException if this is not the primary server for the given client
* @since GemFire 6.5
*/
- public void unregisterInterestRegex(String regionName, String regex, boolean isDurable,
+ void unregisterInterestRegex(String regionName, String regex, boolean isDurable,
boolean receiveValues);
/**
@@ -147,5 +147,5 @@ public interface ClientSession {
*
* @return whether this server is the primary for this client
*/
- public boolean isPrimary();
+ boolean isPrimary();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CustomExpiry.java b/geode-core/src/main/java/org/apache/geode/cache/CustomExpiry.java
index fd7d445..6dcb036 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CustomExpiry.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CustomExpiry.java
@@ -35,5 +35,5 @@ public interface CustomExpiry<K, V> extends CacheCallback {
* @param entry the entry to calculate the expiration for
* @return the expiration to be used, null if the region's defaults should be used.
*/
- public ExpirationAttributes getExpiry(Region.Entry<K, V> entry);
+ ExpirationAttributes getExpiry(Region.Entry<K, V> entry);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/Declarable.java b/geode-core/src/main/java/org/apache/geode/cache/Declarable.java
index 2b54461..6632cb9 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/Declarable.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/Declarable.java
@@ -64,5 +64,5 @@ public interface Declarable {
* @throws IllegalArgumentException If one of the configuration options in <code>props</code> is
* illegal or malformed.
*/
- public default void init(Properties props) {};
+ default void init(Properties props) {};
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/DiskStore.java b/geode-core/src/main/java/org/apache/geode/cache/DiskStore.java
index 0289e62..d1285b0 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/DiskStore.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/DiskStore.java
@@ -42,7 +42,7 @@ public interface DiskStore {
* @return the name of the DiskStore
* @see DiskStoreFactory#create
*/
- public String getName();
+ String getName();
/**
* Returns true if the disk files are to be automatically compacted.
@@ -50,7 +50,7 @@ public interface DiskStore {
* @return Returns true if the disk files are to be automatically compacted; false if automatic
* compaction is turned off
*/
- public boolean getAutoCompact();
+ boolean getAutoCompact();
/**
* Returns the threshold at which an oplog will become compactable. Until it reaches this
@@ -58,7 +58,7 @@ public interface DiskStore {
*
* @return the threshold, as a percentage, at which an oplog is considered compactable.
*/
- public int getCompactionThreshold();
+ int getCompactionThreshold();
/**
* Returns true if manual compaction of disk files is allowed on this region. Manual compaction is
@@ -69,21 +69,21 @@ public interface DiskStore {
*
* @return Returns true if manual compaction of disk files is allowed on this region.
*/
- public boolean getAllowForceCompaction();
+ boolean getAllowForceCompaction();
/**
* Get the maximum size in megabytes a single oplog (operation log) file should be
*
* @return the maximum size in megabyte the operations log file can be
*/
- public long getMaxOplogSize();
+ long getMaxOplogSize();
/**
* Returns the number of milliseconds that can elapse before unwritten data is written to disk.
*
* @return Returns the time interval in milliseconds that can elapse between two writes to disk
*/
- public long getTimeInterval();
+ long getTimeInterval();
/**
* Returns the size of the write buffer that this disk store will use when writing data to disk.
@@ -92,19 +92,19 @@ public interface DiskStore {
*
* @return Returns the size of the write buffer.
*/
- public int getWriteBufferSize();
+ int getWriteBufferSize();
/**
* Returns the directories to which the region's data are written. If multiple directories are
* used, GemFire will attempt to distribute the data evenly amongst them.
*
*/
- public File[] getDiskDirs();
+ File[] getDiskDirs();
/**
* Returns the sizes of the disk directories in megabytes
*/
- public int[] getDiskDirSizes();
+ int[] getDiskDirSizes();
/**
* Returns the universally unique identifier for the Disk Store across the GemFire distributed
@@ -114,7 +114,7 @@ public interface DiskStore {
* @return a UUID uniquely identifying this Disk Store in the GemFire distributed system.
* @see java.util.UUID
*/
- public UUID getDiskStoreUUID();
+ UUID getDiskStoreUUID();
/**
* Returns the maximum number of operations that can be asynchronously queued to be written to
@@ -126,7 +126,7 @@ public interface DiskStore {
* to disk.
*
*/
- public int getQueueSize();
+ int getQueueSize();
/**
* Causes any data that is currently in the asynchronous queue to be written to disk. Does not
@@ -134,7 +134,7 @@ public interface DiskStore {
*
* @throws DiskAccessException If problems are encounter while writing to disk
*/
- public void flush();
+ void flush();
/**
* Asks the disk store to start writing to a new oplog. The old oplog will be asynchronously
@@ -146,7 +146,7 @@ public interface DiskStore {
*
* @throws DiskAccessException
*/
- public void forceRoll();
+ void forceRoll();
/**
* Allows a disk compaction to be forced on this disk store. The compaction is done even if
@@ -160,7 +160,7 @@ public interface DiskStore {
* that no oplogs were ready to be compacted or that a compaction was already in progress.
* @see #getAllowForceCompaction
*/
- public boolean forceCompaction();
+ boolean forceCompaction();
/**
* Destroys this disk store. Removes the disk store from the cache, and removes all files related
@@ -175,7 +175,7 @@ public interface DiskStore {
*
* @since GemFire 8.0
*/
- public void destroy();
+ void destroy();
/**
@@ -184,7 +184,7 @@ public interface DiskStore {
* @return the warning percent
* @since GemFire 8.0
*/
- public float getDiskUsageWarningPercentage();
+ float getDiskUsageWarningPercentage();
/**
* Returns the critical threshold for disk usage as a percentage of the total disk volume.
@@ -192,19 +192,19 @@ public interface DiskStore {
* @return the critical percent
* @since GemFire 8.0
*/
- public float getDiskUsageCriticalPercentage();
+ float getDiskUsageCriticalPercentage();
/**
* Sets the value of the disk usage warning percentage.
*
* @param warningPercent the warning percent
*/
- public void setDiskUsageWarningPercentage(float warningPercent);
+ void setDiskUsageWarningPercentage(float warningPercent);
/**
* Sets the value of the disk usage critical percentage.
*
* @param criticalPercent the critical percent
*/
- public void setDiskUsageCriticalPercentage(float criticalPercent);
+ void setDiskUsageCriticalPercentage(float criticalPercent);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java b/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
index 0187fab..334b9c5 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/DiskStoreFactory.java
@@ -33,34 +33,34 @@ public interface DiskStoreFactory {
* The name of the default disk store is "DEFAULT". This name can be used to redefine the default
* disk store. Regions that have not had their disk-store-name set will use this disk store.
*/
- public static final String DEFAULT_DISK_STORE_NAME = "DEFAULT";
+ String DEFAULT_DISK_STORE_NAME = "DEFAULT";
/**
* The default setting for auto compaction.
* <p>
* Current value: <code>true</code>.
*/
- public static final boolean DEFAULT_AUTO_COMPACT = true;
+ boolean DEFAULT_AUTO_COMPACT = true;
/**
* The default compaction threshold.
* <p>
* Current value: <code>50</code>.
*/
- public static final int DEFAULT_COMPACTION_THRESHOLD = 50;
+ int DEFAULT_COMPACTION_THRESHOLD = 50;
/**
* The default value of the allow force compaction attribute.
* <p>
* Current value: <code>false</code>.
*/
- public static final boolean DEFAULT_ALLOW_FORCE_COMPACTION = false;
+ boolean DEFAULT_ALLOW_FORCE_COMPACTION = false;
/**
* The default maximum oplog file size in megabytes.
* <p>
* Current value: <code>1024</code> which is one gigabyte.
*/
- public static final long DEFAULT_MAX_OPLOG_SIZE =
+ long DEFAULT_MAX_OPLOG_SIZE =
Long.getLong(DistributionConfig.GEMFIRE_PREFIX + "DEFAULT_MAX_OPLOG_SIZE", 1024L).longValue(); // 1024
// ==
// 1
@@ -79,56 +79,56 @@ public interface DiskStoreFactory {
* <p>
* Current value: <code>1000</code>.
*/
- public static final long DEFAULT_TIME_INTERVAL = 1000; // 1 sec;
+ long DEFAULT_TIME_INTERVAL = 1000; // 1 sec;
/**
* The default write buffer size.
* <p>
* Current value: <code>32768</code>.
*/
- public static final int DEFAULT_WRITE_BUFFER_SIZE = 32 * 1024;
+ int DEFAULT_WRITE_BUFFER_SIZE = 32 * 1024;
/**
* The default maximum number of operations that can be asynchronously queued.
* <p>
* Current value: <code>0</code>.
*/
- public static final int DEFAULT_QUEUE_SIZE = 0;
+ int DEFAULT_QUEUE_SIZE = 0;
/**
* The default disk directories.
* <p>
* Current value: <code>current directory</code>.
*/
- public static final File[] DEFAULT_DISK_DIRS = new File[] {new File(".")};
+ File[] DEFAULT_DISK_DIRS = new File[] {new File(".")};
/**
* The default disk directory size in megabytes.
* <p>
* Current value: <code>2,147,483,647</code> which is two petabytes.
*/
- public static final int DEFAULT_DISK_DIR_SIZE = Integer.MAX_VALUE; // unlimited for bug 41863
+ int DEFAULT_DISK_DIR_SIZE = Integer.MAX_VALUE; // unlimited for bug 41863
/**
* The default disk directory sizes.
* <p>
* Current value: {@link #DEFAULT_DISK_DIR_SIZE} which is two petabytes each.
*/
- public static final int[] DEFAULT_DISK_DIR_SIZES = new int[] {DEFAULT_DISK_DIR_SIZE};
+ int[] DEFAULT_DISK_DIR_SIZES = new int[] {DEFAULT_DISK_DIR_SIZE};
/**
* The default disk usage warning percentage.
* <p>
* Current value: <code>90</code>.
*/
- public static final float DEFAULT_DISK_USAGE_WARNING_PERCENTAGE = 90;
+ float DEFAULT_DISK_USAGE_WARNING_PERCENTAGE = 90;
/**
* The default disk usage critical percentage.
* <p>
* Current value: <code>99</code>.
*/
- public static final float DEFAULT_DISK_USAGE_CRITICAL_PERCENTAGE = 99;
+ float DEFAULT_DISK_USAGE_CRITICAL_PERCENTAGE = 99;
/**
* Set to <code>true</code> to cause the disk files to be automatically compacted. Set to
@@ -137,7 +137,7 @@ public interface DiskStoreFactory {
* @param isAutoCompact if true then use auto compaction
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setAutoCompact(boolean isAutoCompact);
+ DiskStoreFactory setAutoCompact(boolean isAutoCompact);
/**
* Sets the threshold at which an oplog will become compactable. Until it reaches this threshold
@@ -150,7 +150,7 @@ public interface DiskStoreFactory {
* compactable
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setCompactionThreshold(int compactionThreshold);
+ DiskStoreFactory setCompactionThreshold(int compactionThreshold);
/**
* Set to <code>true</code> to allow {@link DiskStore#forceCompaction} to be called on regions
@@ -159,7 +159,7 @@ public interface DiskStoreFactory {
* @param allowForceCompaction if true then allow force compaction.
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setAllowForceCompaction(boolean allowForceCompaction);
+ DiskStoreFactory setAllowForceCompaction(boolean allowForceCompaction);
/**
* Sets the maximum size in megabytes a single oplog (operation log) is allowed to be. When an
@@ -168,7 +168,7 @@ public interface DiskStoreFactory {
* @param maxOplogSize maximum size in megabytes for one single oplog file.
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setMaxOplogSize(long maxOplogSize);
+ DiskStoreFactory setMaxOplogSize(long maxOplogSize);
/**
* Sets the number of milliseconds that can elapse before data written asynchronously is flushed
@@ -181,7 +181,7 @@ public interface DiskStoreFactory {
* disk.
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setTimeInterval(long timeInterval);
+ DiskStoreFactory setTimeInterval(long timeInterval);
/**
* Sets the write buffer size in bytes.
@@ -189,7 +189,7 @@ public interface DiskStoreFactory {
* @param writeBufferSize write buffer size in bytes.
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setWriteBufferSize(int writeBufferSize);
+ DiskStoreFactory setWriteBufferSize(int writeBufferSize);
/**
* Sets the maximum number of operations that can be asynchronously queued. Once this many pending
@@ -203,7 +203,7 @@ public interface DiskStoreFactory {
* be unlimited.
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setQueueSize(int queueSize);
+ DiskStoreFactory setQueueSize(int queueSize);
/**
* Sets the directories to which this disk store's data is written. If multiple directories are
@@ -213,7 +213,7 @@ public interface DiskStoreFactory {
* @param diskDirs directories to put the oplog files.
* @return a reference to <code>this</code>
*/
- public DiskStoreFactory setDiskDirs(File[] diskDirs);
+ DiskStoreFactory setDiskDirs(File[] diskDirs);
/**
* Sets the directories to which this disk store's data is written and also set the sizes in
@@ -226,7 +226,7 @@ public interface DiskStoreFactory {
* @throws IllegalArgumentException if length of the size array does not match to the length of
* the dir array
*/
- public DiskStoreFactory setDiskDirsAndSizes(File[] diskDirs, int[] diskDirSizes);
+ DiskStoreFactory setDiskDirsAndSizes(File[] diskDirs, int[] diskDirSizes);
/**
* Sets the warning threshold for disk usage as a percentage of the total disk volume.
@@ -235,7 +235,7 @@ public interface DiskStoreFactory {
* @return a reference to <code>this</code>
* @since GemFire 8.0
*/
- public DiskStoreFactory setDiskUsageWarningPercentage(float warningPercent);
+ DiskStoreFactory setDiskUsageWarningPercentage(float warningPercent);
/**
* Sets the critical threshold for disk usage as a percentage of the total disk volume.
@@ -244,7 +244,7 @@ public interface DiskStoreFactory {
* @return a reference to <code>this</code>
* @since GemFire 8.0
*/
- public DiskStoreFactory setDiskUsageCriticalPercentage(float criticalPercent);
+ DiskStoreFactory setDiskUsageCriticalPercentage(float criticalPercent);
/**
* Create a new disk store or find an existing one. In either case the returned disk store's
@@ -255,5 +255,5 @@ public interface DiskStoreFactory {
* @throws IllegalStateException if a disk store with the given name already exists and its
* configuration is not consistent with this factory.
*/
- public DiskStore create(String name);
+ DiskStore create(String name);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/DiskWriteAttributes.java b/geode-core/src/main/java/org/apache/geode/cache/DiskWriteAttributes.java
index b0b5a87..83ab91c 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/DiskWriteAttributes.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/DiskWriteAttributes.java
@@ -43,7 +43,7 @@ public interface DiskWriteAttributes extends java.io.Serializable {
* @deprecated as of 6.5 use {@link RegionAttributes#isDiskSynchronous} instead.
*/
@Deprecated
- public boolean isSynchronous();
+ boolean isSynchronous();
/**
@@ -51,7 +51,7 @@ public interface DiskWriteAttributes extends java.io.Serializable {
*
* @return Returns true if the oplogs is to be rolled or false otherwise
*/
- public boolean isRollOplogs();
+ boolean isRollOplogs();
/**
* Get the maximum size in megabytes a single oplog (operation log) file should be
@@ -60,7 +60,7 @@ public interface DiskWriteAttributes extends java.io.Serializable {
* @deprecated as of 6.5 use {@link DiskStore#getMaxOplogSize()} instead.
*/
@Deprecated
- public int getMaxOplogSize();
+ int getMaxOplogSize();
/**
* Returns the number of milliseconds that can elapse before unwritten data is written to disk. If
@@ -71,7 +71,7 @@ public interface DiskWriteAttributes extends java.io.Serializable {
* @deprecated as of 6.5 use {@link DiskStore#getTimeInterval()} instead.
*/
@Deprecated
- public long getTimeInterval();
+ long getTimeInterval();
/**
* Returns the number of unwritten bytes of data that can be enqueued before being written to
@@ -82,7 +82,7 @@ public interface DiskWriteAttributes extends java.io.Serializable {
* @deprecated as of 6.5 use {@link DiskStore#getQueueSize()} instead.
*/
@Deprecated
- public long getBytesThreshold();
+ long getBytesThreshold();
/**
* Two <code>DiskWriteAttributes</code> are equal if the both specify the synchronous writes, or
@@ -91,6 +91,6 @@ public interface DiskWriteAttributes extends java.io.Serializable {
*
* @return true if o is equal else false
*/
- public boolean equals(Object o);
+ boolean equals(Object o);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionListener.java b/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionListener.java
index e26e679..1bd4d9f 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/DynamicRegionListener.java
@@ -39,7 +39,7 @@ public interface DynamicRegionListener {
* @param parentRegionName The name of the parent region
* @param regionName The name of the region being created
*/
- public void beforeRegionCreate(String parentRegionName, String regionName);
+ void beforeRegionCreate(String parentRegionName, String regionName);
/**
* Handles the 'after region creation' event of a dynamic region. This method is invoked after the
@@ -47,7 +47,7 @@ public interface DynamicRegionListener {
*
* @param event A <code>RegionEvent</code> describing the event
*/
- public void afterRegionCreate(RegionEvent<?, ?> event);
+ void afterRegionCreate(RegionEvent<?, ?> event);
/**
* Handles the 'before region destroyed' event of a dynamic region. This method is invoked before
@@ -55,7 +55,7 @@ public interface DynamicRegionListener {
*
* @param event A <code>RegionEvent</code> describing the event
*/
- public void beforeRegionDestroy(RegionEvent<?, ?> event);
+ void beforeRegionDestroy(RegionEvent<?, ?> event);
/**
* Handles the 'after region destroyed' event of a dynamic region. This method is invoked after
@@ -63,5 +63,5 @@ public interface DynamicRegionListener {
*
* @param event A <code>RegionEvent</code> describing the event
*/
- public void afterRegionDestroy(RegionEvent<?, ?> event);
+ void afterRegionDestroy(RegionEvent<?, ?> event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/EntryEvent.java b/geode-core/src/main/java/org/apache/geode/cache/EntryEvent.java
index a0f19a9..520f482 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/EntryEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/EntryEvent.java
@@ -41,7 +41,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
*
* @return the key
*/
- public K getKey();
+ K getKey();
/**
@@ -56,7 +56,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
* @throws IllegalStateException if off-heap and called after the method that was passed this
* EntryEvent returns.
*/
- public V getOldValue();
+ V getOldValue();
/**
* Returns the serialized form of the value in the cache before this event.
@@ -67,7 +67,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
*
* @since GemFire 5.5
*/
- public SerializedCacheValue<V> getSerializedOldValue();
+ SerializedCacheValue<V> getSerializedOldValue();
/**
* Returns the value in the cache after this event.
@@ -76,7 +76,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
* @throws IllegalStateException if off-heap and called after the method that was passed this
* EntryEvent returns.
*/
- public V getNewValue();
+ V getNewValue();
/**
* Returns the serialized form of the value in the cache after this event.
@@ -87,7 +87,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
*
* @since GemFire 5.5
*/
- public SerializedCacheValue<V> getSerializedNewValue();
+ SerializedCacheValue<V> getSerializedNewValue();
/**
* Gets the TransactionId for this EntryEvent.
@@ -96,7 +96,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
* if no transaction involved.
* @since GemFire 4.0
*/
- public TransactionId getTransactionId();
+ TransactionId getTransactionId();
/**
* Returns true if this event originated on a client.
@@ -104,7 +104,7 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
* @since GemFire 5.7
* @return true if this event originated on a client.
*/
- public boolean hasClientOrigin();
+ boolean hasClientOrigin();
/**
* Returns <code>true</code> if the old value is "available". Not available means that an old
@@ -113,5 +113,5 @@ public interface EntryEvent<K, V> extends CacheEvent<K, V> {
*
* @since GemFire 6.0
*/
- public boolean isOldValueAvailable();
+ boolean isOldValueAvailable();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/EntryOperation.java b/geode-core/src/main/java/org/apache/geode/cache/EntryOperation.java
index d9aed95..9851e36 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/EntryOperation.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/EntryOperation.java
@@ -30,7 +30,7 @@ public interface EntryOperation<K, V> {
*
* @return the region associated with this object or the region that raised this event.
*/
- public Region<K, V> getRegion();
+ Region<K, V> getRegion();
/**
* Return a description of the operation that triggered this event. It may return null and should
@@ -41,14 +41,14 @@ public interface EntryOperation<K, V> {
* @since GemFire 6.0
* @deprecated
*/
- public Operation getOperation();
+ Operation getOperation();
/**
* Returns the key.
*
* @return the key
*/
- public K getKey();
+ K getKey();
/**
* Returns the callbackArgument passed to the method that generated this event. Provided primarily
@@ -61,7 +61,7 @@ public interface EntryOperation<K, V> {
* {@link TransactionListener} and to {@link CacheListener} on the remote side of a
* transaction commit.
*/
- public Object getCallbackArgument();
+ Object getCallbackArgument();
/**
* Returns <code>true</code> if the callback argument is "available". Not available means that the
@@ -71,7 +71,7 @@ public interface EntryOperation<K, V> {
*
* @since GemFire 6.0
*/
- public boolean isCallbackArgumentAvailable();
+ boolean isCallbackArgumentAvailable();
/**
* Returns the value but may return null and should not be used to generate routing object in
@@ -81,5 +81,5 @@ public interface EntryOperation<K, V> {
* @return the value.
* @deprecated
*/
- public V getNewValue();
+ V getNewValue();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/EvictionAttributesMutator.java b/geode-core/src/main/java/org/apache/geode/cache/EvictionAttributesMutator.java
index d5808ec..cacf97f 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/EvictionAttributesMutator.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/EvictionAttributesMutator.java
@@ -31,5 +31,5 @@ public interface EvictionAttributesMutator {
*
* @param maximum value used by the {@link EvictionAlgorithm}
*/
- public void setMaximum(int maximum);
+ void setMaximum(int maximum);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/FixedPartitionResolver.java b/geode-core/src/main/java/org/apache/geode/cache/FixedPartitionResolver.java
index a7b1d1c..16b1637 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/FixedPartitionResolver.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/FixedPartitionResolver.java
@@ -69,6 +69,5 @@ public interface FixedPartitionResolver<K, V> extends PartitionResolver<K, V> {
* @return partition-name associated with node which allows mapping of given data to user defined
* partition
*/
- public String getPartitionName(EntryOperation<K, V> opDetails,
- @Deprecated Set<String> targetPartitions);
+ String getPartitionName(EntryOperation<K, V> opDetails, @Deprecated Set<String> targetPartitions);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/GemFireCache.java b/geode-core/src/main/java/org/apache/geode/cache/GemFireCache.java
index 80d30e4..b76a7ab 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/GemFireCache.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/GemFireCache.java
@@ -48,13 +48,13 @@ public interface GemFireCache extends RegionService {
*
* @return the String name of this cache
*/
- public String getName();
+ String getName();
/**
* Returns the distributed system used by this cache. This method does not throw
* {@code CacheClosedException} if the cache is closed.
*/
- public DistributedSystem getDistributedSystem();
+ DistributedSystem getDistributedSystem();
/**
* Returns the {@code ResourceManager} for managing this cache's resources.
@@ -62,14 +62,14 @@ public interface GemFireCache extends RegionService {
* @return {@code ResourceManager} for managing this cache's resources
* @since GemFire 6.0
*/
- public ResourceManager getResourceManager();
+ ResourceManager getResourceManager();
/**
* Sets the "copy on read" feature for cache read operations.
*
* @since GemFire 4.0
*/
- public void setCopyOnRead(boolean copyOnRead);
+ void setCopyOnRead(boolean copyOnRead);
/**
* Indicates whether the "copy on read" is enabled for this cache.
@@ -78,7 +78,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.0
*/
- public boolean getCopyOnRead();
+ boolean getCopyOnRead();
/**
* Returns the {@code RegionAttributes} with the given {@code id} or {@code null} if no
@@ -88,7 +88,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.1
*/
- public <K, V> RegionAttributes<K, V> getRegionAttributes(String id);
+ <K, V> RegionAttributes<K, V> getRegionAttributes(String id);
/**
* Sets the {@code id} of the given {@code RegionAttributes}. If a region attributes named
@@ -103,7 +103,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.1
*/
- public <K, V> void setRegionAttributes(String id, RegionAttributes<K, V> attrs);
+ <K, V> void setRegionAttributes(String id, RegionAttributes<K, V> attrs);
/**
* Returns an unmodifiable mapping of ids to region attributes. The keys of the map are
@@ -111,7 +111,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.1
*/
- public <K, V> Map<String, RegionAttributes<K, V>> listRegionAttributes();
+ <K, V> Map<String, RegionAttributes<K, V>> listRegionAttributes();
/**
* Loads the cache configuration described in a
@@ -130,7 +130,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.1
*/
- public void loadCacheXml(InputStream is)
+ void loadCacheXml(InputStream is)
throws TimeoutException, CacheWriterException, GatewayException, RegionExistsException;
/**
@@ -139,7 +139,7 @@ public interface GemFireCache extends RegionService {
*
* @return the logging object
*/
- public LogWriter getLogger();
+ LogWriter getLogger();
/**
* Gets the security logging object for GemFire. This method does not throw
@@ -147,7 +147,7 @@ public interface GemFireCache extends RegionService {
*
* @return the security logging object
*/
- public LogWriter getSecurityLogger();
+ LogWriter getSecurityLogger();
/**
* Returns the DiskStore by name or {@code null} if no disk store is found.
@@ -156,16 +156,16 @@ public interface GemFireCache extends RegionService {
* it exists, is returned.
* @since GemFire 6.5
*/
- public DiskStore findDiskStore(String name);
+ DiskStore findDiskStore(String name);
/**
* create diskstore factory
*
* @since GemFire 6.5
*/
- public DiskStoreFactory createDiskStoreFactory();
+ DiskStoreFactory createDiskStoreFactory();
- public GatewaySenderFactory createGatewaySenderFactory();
+ GatewaySenderFactory createGatewaySenderFactory();
/**
* Returns whether { @link PdxInstance} is preferred for PDX types instead of Java object.
@@ -175,7 +175,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 6.6
*/
- public boolean getPdxReadSerialized();
+ boolean getPdxReadSerialized();
/**
* Returns the PdxSerializer used by this cache, or null if no PDX serializer is defined.
@@ -184,7 +184,7 @@ public interface GemFireCache extends RegionService {
* @see CacheFactory#setPdxSerializer(PdxSerializer)
* @see ClientCacheFactory#setPdxSerializer(PdxSerializer)
*/
- public PdxSerializer getPdxSerializer();
+ PdxSerializer getPdxSerializer();
/**
* Returns the disk store used for PDX meta data
@@ -193,7 +193,7 @@ public interface GemFireCache extends RegionService {
* @see CacheFactory#setPdxDiskStore(String)
* @see ClientCacheFactory#setPdxDiskStore(String)
*/
- public String getPdxDiskStore();
+ String getPdxDiskStore();
/**
* Returns true if the PDX metadata for this cache is persistent
@@ -202,7 +202,7 @@ public interface GemFireCache extends RegionService {
* @see CacheFactory#setPdxPersistent(boolean)
* @see ClientCacheFactory#setPdxPersistent(boolean)
*/
- public boolean getPdxPersistent();
+ boolean getPdxPersistent();
/**
* Returns true if fields that are not read during PDX deserialization should be ignored during
@@ -212,7 +212,7 @@ public interface GemFireCache extends RegionService {
* @see CacheFactory#setPdxIgnoreUnreadFields(boolean)
* @see ClientCacheFactory#setPdxIgnoreUnreadFields(boolean)
*/
- public boolean getPdxIgnoreUnreadFields();
+ boolean getPdxIgnoreUnreadFields();
/**
* Get the CacheTransactionManager instance for this Cache.
@@ -223,7 +223,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.0
*/
- public CacheTransactionManager getCacheTransactionManager();
+ CacheTransactionManager getCacheTransactionManager();
/**
* Returns the JNDI context associated with the Cache.
@@ -232,7 +232,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 4.0
*/
- public Context getJNDIContext();
+ Context getJNDIContext();
/**
* Returns the Declarable used to initialize this cache or {@code null} if it does not have an
@@ -240,7 +240,7 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 6.6
*/
- public Declarable getInitializer();
+ Declarable getInitializer();
/**
* Returns the Properties used to initialize the cache initializer or {@code null} if no
@@ -248,5 +248,5 @@ public interface GemFireCache extends RegionService {
*
* @since GemFire 6.6
*/
- public Properties getInitializerProps();
+ Properties getInitializerProps();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationEvent.java b/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationEvent.java
index 7a7ff48..e7a599f 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationEvent.java
@@ -32,54 +32,54 @@ public interface InterestRegistrationEvent {
*
* @return the name of the region to which this interest event belongs
*/
- public String getRegionName();
+ String getRegionName();
/**
* Returns the region to which this interest belongs.
*
* @return the region to which this interest belongs
*/
- public Region<?, ?> getRegion();
+ Region<?, ?> getRegion();
/**
* Returns a <code>Set</code> of keys of interest.
*
* @return a <code>Set</code> of keys of interest
*/
- public Set<?> getKeysOfInterest();
+ Set<?> getKeysOfInterest();
/**
* Returns this event's interest type.
*
* @return this event's interest type
*/
- public int getInterestType();
+ int getInterestType();
/**
* Returns whether this event represents a register interest.
*
* @return whether this event represents a register interest
*/
- public boolean isRegister();
+ boolean isRegister();
/**
* Returns whether this event's interest type is {@link InterestType#KEY}.
*
* @return whether this event's interest type is {@link InterestType#KEY}
*/
- public boolean isKey();
+ boolean isKey();
/**
* Returns whether this event's interest type is {@link InterestType#REGULAR_EXPRESSION}.
*
* @return whether this event's interest type is {@link InterestType#REGULAR_EXPRESSION}
*/
- public boolean isRegularExpression();
+ boolean isRegularExpression();
/**
* Returns the {@link ClientSession} that initiated this event
*
* @return the {@link ClientSession} that initiated this event
*/
- public ClientSession getClientSession();
+ ClientSession getClientSession();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationListener.java b/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationListener.java
index 83a1c39..fe55874 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/InterestRegistrationListener.java
@@ -73,12 +73,12 @@ public interface InterestRegistrationListener extends CacheCallback {
*
* @param event the InterestRegistrationEvent
*/
- public void afterRegisterInterest(InterestRegistrationEvent event);
+ void afterRegisterInterest(InterestRegistrationEvent event);
/**
* Handles an after unregister interest event.
*
* @param event the InterestRegistrationEvent
*/
- public void afterUnregisterInterest(InterestRegistrationEvent event);
+ void afterUnregisterInterest(InterestRegistrationEvent event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/LoaderHelper.java b/geode-core/src/main/java/org/apache/geode/cache/LoaderHelper.java
index 473e30c..3160fcd 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/LoaderHelper.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/LoaderHelper.java
@@ -44,7 +44,7 @@ public interface LoaderHelper<K, V> {
* @throws CacheLoaderException If <code>netSearch</code> is attempted on a
* {@linkplain org.apache.geode.cache.Scope#LOCAL local} region.
*/
- public V netSearch(boolean doNetLoad) throws CacheLoaderException, TimeoutException;
+ V netSearch(boolean doNetLoad) throws CacheLoaderException, TimeoutException;
/**
* Returns the key for the value being loaded.
@@ -52,7 +52,7 @@ public interface LoaderHelper<K, V> {
* @return the name Object for the object being loaded
* @see CacheLoader#load(LoaderHelper) load
*/
- public K getKey();
+ K getKey();
/**
* Returns the region to which the entry belongs.
@@ -60,7 +60,7 @@ public interface LoaderHelper<K, V> {
* @return the name of the region for the object being loaded
* @see CacheLoader#load(LoaderHelper) load
*/
- public Region<K, V> getRegion();
+ Region<K, V> getRegion();
/**
* Return the argument object for the load method that was passed in from application code. This
@@ -68,5 +68,5 @@ public interface LoaderHelper<K, V> {
*
* @return the argument or null if one was not supplied
*/
- public Object getArgument();
+ Object getArgument();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/PartitionAttributes.java b/geode-core/src/main/java/org/apache/geode/cache/PartitionAttributes.java
index 5feb705..497d906 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/PartitionAttributes.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/PartitionAttributes.java
@@ -18,7 +18,6 @@ package org.apache.geode.cache;
import java.util.List;
import java.util.Properties;
-import org.apache.geode.cache.PartitionResolver;
import org.apache.geode.cache.partition.PartitionListener;
/**
@@ -63,7 +62,7 @@ public interface PartitionAttributes<K, V> {
*
* @return redundantCopies.
*/
- public int getRedundantCopies();
+ int getRedundantCopies();
/**
* This method returns the maximum total size of the region in megabytes.
@@ -72,7 +71,7 @@ public interface PartitionAttributes<K, V> {
* @return total size in megabytes.
*/
@Deprecated
- public long getTotalSize();
+ long getTotalSize();
/**
* This method returns the maximum total size of the region, in megabytes. Default value is
@@ -83,7 +82,7 @@ public interface PartitionAttributes<K, V> {
* @deprecated since Geode 1.3.0
*/
@Deprecated
- public long getTotalMaxMemory();
+ long getTotalMaxMemory();
/**
* This method returns total number of buckets for a PartitionedRegion. Default number of buckets
@@ -91,20 +90,20 @@ public interface PartitionAttributes<K, V> {
*
* @return total number of buckets for a PartitionedRegion.
*/
- public int getTotalNumBuckets();
+ int getTotalNumBuckets();
/**
* This method returns the maximum amount of local memory that can be used by the Region. By
* default, a PartitionedRegion can contribute 90% of the maximum memory allocated to a VM.
*/
- public int getLocalMaxMemory();
+ int getLocalMaxMemory();
/**
* Returns name of the colocated PartitionedRegion's name
*
* @since GemFire 6.0
*/
- public String getColocatedWith();
+ String getColocatedWith();
/**
* This method returns local properties. There are currently no local properties defined that are
@@ -114,7 +113,7 @@ public interface PartitionAttributes<K, V> {
* @return localProperties
*/
@Deprecated
- public Properties getLocalProperties();
+ Properties getLocalProperties();
/**
* This method returns global properties. There are currently no global properties defined that
@@ -125,7 +124,7 @@ public interface PartitionAttributes<K, V> {
* @return globalProperties
*/
@Deprecated
- public Properties getGlobalProperties();
+ Properties getGlobalProperties();
/**
* Returns the PartitionResolver set for custom partitioning
@@ -133,7 +132,7 @@ public interface PartitionAttributes<K, V> {
* @return <code>PartitionResolver</code> for the PartitionedRegion
* @since GemFire 6.0
*/
- public PartitionResolver<K, V> getPartitionResolver();
+ PartitionResolver<K, V> getPartitionResolver();
/**
* Returns the delay in milliseconds that existing members will wait before satisfying redundancy
@@ -142,7 +141,7 @@ public interface PartitionAttributes<K, V> {
*
* @since GemFire 6.0
*/
- public long getRecoveryDelay();
+ long getRecoveryDelay();
/**
* Returns the delay in milliseconds that a new member will wait before trying to satisfy
@@ -151,7 +150,7 @@ public interface PartitionAttributes<K, V> {
*
* @since GemFire 6.0
*/
- public long getStartupRecoveryDelay();
+ long getStartupRecoveryDelay();
/**
* Returns array of PartitionListener{s} configured on this partitioned region
@@ -160,7 +159,7 @@ public interface PartitionAttributes<K, V> {
* @return PartitionListener configured on this partitioned region
* @since GemFire 6.5
*/
- public PartitionListener[] getPartitionListeners();
+ PartitionListener[] getPartitionListeners();
/**
* Returns <code>FixedPartitionAttributes</code>'s list of local partitions defined on this
@@ -168,6 +167,6 @@ public interface PartitionAttributes<K, V> {
*
* @since GemFire 6.6
*/
- public List<FixedPartitionAttributes> getFixedPartitionAttributes();
+ List<FixedPartitionAttributes> getFixedPartitionAttributes();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/PartitionResolver.java b/geode-core/src/main/java/org/apache/geode/cache/PartitionResolver.java
index 2f8fc00..3e9981c 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/PartitionResolver.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/PartitionResolver.java
@@ -69,12 +69,12 @@ public interface PartitionResolver<K, V> extends CacheCallback {
* @return object associated with entry operation which allows the Partitioned Region to store
* associated data together
*/
- public Object getRoutingObject(EntryOperation<K, V> opDetails);
+ Object getRoutingObject(EntryOperation<K, V> opDetails);
/**
* Returns the name of the PartitionResolver
*
* @return String name
*/
- public String getName();
+ String getName();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/Region.java b/geode-core/src/main/java/org/apache/geode/cache/Region.java
index 1e06d5b..5073b8b 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/Region.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/Region.java
@@ -142,10 +142,10 @@ import org.apache.geode.cache.snapshot.RegionSnapshotService;
public interface Region<K, V> extends ConcurrentMap<K, V> {
/** The region name separator character. */
- public static final char SEPARATOR_CHAR = '/';
+ char SEPARATOR_CHAR = '/';
/** The region name separator character, represented as a string for convenience. */
- public static final String SEPARATOR = "/";
+ String SEPARATOR = "/";
/**
* Returns the name of this region. A region's name can be any non-empty String providing it does
@@ -156,7 +156,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return the name of this region
*/
- public String getName();
+ String getName();
/**
* Returns the full path of this region starting with a forward slash, followed by the root,
@@ -166,7 +166,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return the full path of this region
*/
- public String getFullPath();
+ String getFullPath();
/**
* Gets the parent region of this region. If this region is a root region, returns null.
@@ -176,7 +176,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return the parent region which contains this region; null, if this region is the root region
* @see Region#createSubregion(String, RegionAttributes) createSubregion
*/
- public <PK, PV> Region<PK, PV> getParentRegion();
+ <PK, PV> Region<PK, PV> getParentRegion();
/**
* Returns the <code>RegionAttributes</code> for this region. This object is backed by this
@@ -191,7 +191,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see AttributesFactory
* @see #getAttributesMutator
*/
- public RegionAttributes<K, V> getAttributes();
+ RegionAttributes<K, V> getAttributes();
/**
@@ -201,7 +201,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return the <code>AttributesMutator</code> object
* @see #getAttributes
*/
- public AttributesMutator<K, V> getAttributesMutator();
+ AttributesMutator<K, V> getAttributesMutator();
/**
* Returns the <code>CacheStatistics</code> for this region.
@@ -210,7 +210,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws StatisticsDisabledException if statistics have been disabled for this region
* @throws UnsupportedOperationException If the region is a partitioned region
*/
- public CacheStatistics getStatistics() throws StatisticsDisabledException;
+ CacheStatistics getStatistics() throws StatisticsDisabledException;
/**
* Invalidates this region. Invalidation cascades to all entries and subregions. After the
@@ -225,7 +225,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws TimeoutException if timed out getting distributed lock for <code>Scope.GLOBAL</code>
* @see CacheListener#afterRegionInvalidate
*/
- public void invalidateRegion() throws TimeoutException;
+ void invalidateRegion() throws TimeoutException;
/**
* Invalidates this region. The invalidation will cascade to all the subregions and cached
@@ -244,7 +244,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws IllegalArgumentException if aCallbackArgument is not serializable
* @see CacheListener#afterRegionInvalidate
*/
- public void invalidateRegion(Object aCallbackArgument) throws TimeoutException;
+ void invalidateRegion(Object aCallbackArgument) throws TimeoutException;
@@ -260,7 +260,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws UnsupportedOperationException If the region is a partitioned region
* @see CacheListener#afterRegionInvalidate
*/
- public void localInvalidateRegion();
+ void localInvalidateRegion();
/**
* Invalidates this region in the local cache only, and provides a user-defined argument to the
@@ -278,7 +278,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterRegionInvalidate
*/
- public void localInvalidateRegion(Object aCallbackArgument);
+ void localInvalidateRegion(Object aCallbackArgument);
/**
@@ -297,7 +297,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterRegionDestroy
* @see CacheWriter#beforeRegionDestroy
*/
- public void destroyRegion() throws CacheWriterException, TimeoutException;
+ void destroyRegion() throws CacheWriterException, TimeoutException;
/**
* Destroys the whole region and provides a user-defined parameter object to any
@@ -319,7 +319,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterRegionDestroy
* @see CacheWriter#beforeRegionDestroy
*/
- public void destroyRegion(Object aCallbackArgument) throws CacheWriterException, TimeoutException;
+ void destroyRegion(Object aCallbackArgument) throws CacheWriterException, TimeoutException;
/**
* Destroys the whole region in the local cache only. No <code>CacheWriter</code> is invoked.
@@ -332,7 +332,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @see CacheListener#afterRegionDestroy
*/
- public void localDestroyRegion();
+ void localDestroyRegion();
/**
* Destroys the whole region in the local cache only, and provides a user-defined argument to a
@@ -348,7 +348,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* call. Can be null.
* @see CacheListener#afterRegionDestroy
*/
- public void localDestroyRegion(Object aCallbackArgument);
+ void localDestroyRegion(Object aCallbackArgument);
/**
* Does a localDestroyRegion, but leaves behind the disk files if this is a region with
@@ -361,14 +361,14 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see Region#localDestroyRegion()
* @see CacheListener#afterRegionDestroy
*/
- public void close();
+ void close();
/**
* Obtains the snapshot service to allow the cache data to be imported or exported.
*
* @return the snapshot service for the region
*/
- public RegionSnapshotService<K, V> getSnapshotService();
+ RegionSnapshotService<K, V> getSnapshotService();
/**
* Saves the data in this region in a snapshot file. The data is a "concurrent" snapshot in that
@@ -384,7 +384,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @deprecated as of 7.0 use {@link #getSnapshotService()}
*/
- public void saveSnapshot(OutputStream outputStream) throws IOException;
+ void saveSnapshot(OutputStream outputStream) throws IOException;
/**
* Loads data from a file that was previously created with the saveSnapshot method. This method
@@ -432,7 +432,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @deprecated as of 7.0 use {@link #getSnapshotService()}
*/
- public void loadSnapshot(InputStream inputStream)
+ void loadSnapshot(InputStream inputStream)
throws IOException, ClassNotFoundException, CacheWriterException, TimeoutException;
/**
@@ -447,7 +447,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see Region Region
* @see Region#getFullPath
*/
- public <SK, SV> Region<SK, SV> getSubregion(String path);
+ <SK, SV> Region<SK, SV> getSubregion(String path);
/**
@@ -479,7 +479,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @deprecated as of 7.0 use {@link RegionFactory#createSubregion(Region, String)} or
* {@link ClientRegionFactory#createSubregion(Region, String)}.
*/
- public <SK, SV> Region<SK, SV> createSubregion(String subregionName,
+ <SK, SV> Region<SK, SV> createSubregion(String subregionName,
RegionAttributes<SK, SV> aRegionAttributes) throws RegionExistsException, TimeoutException;
/**
@@ -498,7 +498,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* recursively
* @return a Set of subregions
*/
- public Set<Region<?, ?>> subregions(boolean recursive);
+ Set<Region<?, ?>> subregions(boolean recursive);
/**
@@ -508,7 +508,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return the Region.Entry for the specified key or null if not found in this region
* @throws NullPointerException if key is null
*/
- public Entry<K, V> getEntry(Object key);
+ Entry<K, V> getEntry(Object key);
/**
* Returns the value associated with the specified key. If the value is not present locally for
@@ -557,7 +557,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeCreate
* @see CacheWriter#beforeUpdate
*/
- public V get(Object key) throws CacheLoaderException, TimeoutException;
+ V get(Object key) throws CacheLoaderException, TimeoutException;
/**
* Returns the value associated with the specified key, passing the callback argument to any cache
@@ -613,7 +613,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeCreate
* @see CacheWriter#beforeUpdate
*/
- public V get(Object key, Object aCallbackArgument) throws TimeoutException, CacheLoaderException;
+ V get(Object key, Object aCallbackArgument) throws TimeoutException, CacheLoaderException;
/**
* Places a new value into an entry in this region with the specified key. If there is already an
@@ -651,7 +651,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeCreate
* @see CacheWriter#beforeUpdate
*/
- public V put(K key, V value) throws TimeoutException, CacheWriterException;
+ V put(K key, V value) throws TimeoutException, CacheWriterException;
/**
@@ -696,8 +696,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeCreate
* @see CacheWriter#beforeUpdate
*/
- public V put(K key, V value, Object aCallbackArgument)
- throws TimeoutException, CacheWriterException;
+ V put(K key, V value, Object aCallbackArgument) throws TimeoutException, CacheWriterException;
/**
* Creates a new entry in this region with the specified key and value.
@@ -732,8 +731,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeCreate
* @see CacheWriter#beforeUpdate
*/
- public void create(K key, V value)
- throws TimeoutException, EntryExistsException, CacheWriterException;
+ void create(K key, V value) throws TimeoutException, EntryExistsException, CacheWriterException;
/**
* Creates a new entry in this region with the specified key and value, providing a user-defined
@@ -770,7 +768,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeCreate
* @see CacheWriter#beforeUpdate
*/
- public void create(K key, V value, Object aCallbackArgument)
+ void create(K key, V value, Object aCallbackArgument)
throws TimeoutException, EntryExistsException, CacheWriterException;
/**
@@ -790,7 +788,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws EntryNotFoundException if the entry does not exist in this region
* @see CacheListener#afterInvalidate
*/
- public void invalidate(Object key) throws TimeoutException, EntryNotFoundException;
+ void invalidate(Object key) throws TimeoutException, EntryNotFoundException;
/**
* Invalidates the entry with the specified key, and provides a user-defined argument to the
@@ -813,7 +811,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterInvalidate
*/
- public void invalidate(Object key, Object aCallbackArgument)
+ void invalidate(Object key, Object aCallbackArgument)
throws TimeoutException, EntryNotFoundException;
/**
@@ -834,7 +832,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws UnsupportedOperationInTransactionException If called in a transactional context
* @see CacheListener#afterInvalidate
*/
- public void localInvalidate(Object key) throws EntryNotFoundException;
+ void localInvalidate(Object key) throws EntryNotFoundException;
/**
* Invalidates the value with the specified key in the local cache only, and provides a
@@ -856,7 +854,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws UnsupportedOperationInTransactionException If called in a transactional context
* @see CacheListener#afterInvalidate
*/
- public void localInvalidate(Object key, Object aCallbackArgument) throws EntryNotFoundException;
+ void localInvalidate(Object key, Object aCallbackArgument) throws EntryNotFoundException;
/**
@@ -885,8 +883,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterDestroy
* @see CacheWriter#beforeDestroy
*/
- public V destroy(Object key)
- throws TimeoutException, EntryNotFoundException, CacheWriterException;
+ V destroy(Object key) throws TimeoutException, EntryNotFoundException, CacheWriterException;
/**
@@ -919,7 +916,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterDestroy
* @see CacheWriter#beforeDestroy
*/
- public V destroy(Object key, Object aCallbackArgument)
+ V destroy(Object key, Object aCallbackArgument)
throws TimeoutException, EntryNotFoundException, CacheWriterException;
/**
@@ -937,7 +934,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws UnsupportedOperationInTransactionException If called in a transactional context
* @see CacheListener#afterDestroy
*/
- public void localDestroy(Object key) throws EntryNotFoundException;
+ void localDestroy(Object key) throws EntryNotFoundException;
/**
* Destroys the value with the specified key in the local cache only, and provides a user-defined
@@ -957,7 +954,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws UnsupportedOperationInTransactionException If called in a transactional context
* @see CacheListener#afterDestroy
*/
- public void localDestroy(Object key, Object aCallbackArgument) throws EntryNotFoundException;
+ void localDestroy(Object key, Object aCallbackArgument) throws EntryNotFoundException;
/**
* Returns a set of keys in the region.
@@ -974,7 +971,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return a Set of all the keys
*/
- public Set<K> keySet();
+ Set<K> keySet();
/**
* Returns a Collection of values in this region.
@@ -994,7 +991,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return a Collection of all the objects cached in this region
*/
- public Collection<V> values();
+ Collection<V> values();
/**
* Returns the <code>Set</code> of <code>Region.Entry</code> objects in this region. If the
@@ -1016,7 +1013,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return a Set of all the cached objects
* @see Region.Entry
*/
- public Set<Region.Entry<?, ?>> entrySet(boolean recursive);
+ Set<Region.Entry<?, ?>> entrySet(boolean recursive);
/**
* Returns the <code>Cache</code> associated with this region.
@@ -1027,7 +1024,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @deprecated as of 6.5 use {@link #getRegionService()} instead.
*/
@Deprecated
- public Cache getCache();
+ Cache getCache();
/**
* Returns the <code>cache</code> associated with this region.
@@ -1037,7 +1034,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return the cache
* @since GemFire 6.5
*/
- public RegionService getRegionService();
+ RegionService getRegionService();
/**
* Returns the application-defined object associated with this region. GemFire does not use this
@@ -1045,7 +1042,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return the user attribute object or null if it has not been set
*/
- public Object getUserAttribute();
+ Object getUserAttribute();
/**
* Sets the application-defined object associated with this region. GemFire does not use this
@@ -1053,7 +1050,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @param value the application-defined object
*/
- public void setUserAttribute(Object value);
+ void setUserAttribute(Object value);
/**
* Returns whether this region has been destroyed.
@@ -1063,7 +1060,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return true if this region has been destroyed
*/
- public boolean isDestroyed();
+ boolean isDestroyed();
/**
* Returns whether there is a valid (non-null) value present for the specified key. This method is
@@ -1077,7 +1074,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @param key the key to check for a valid value
* @return true if there is an entry in this region for the specified key and it has a valid value
*/
- public boolean containsValueForKey(Object key);
+ boolean containsValueForKey(Object key);
/**
* Returns whether the specified key currently exists in this region. This method is equivalent to
@@ -1086,7 +1083,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @param key the key to check for an existing entry
* @return true if there is an entry in this region for the specified key
*/
- public boolean containsKey(Object key);
+ boolean containsKey(Object key);
/**
@@ -1113,7 +1110,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws IllegalStateException if the scope of this region is not global
* @throws UnsupportedOperationException If the region is a partitioned region
*/
- public Lock getRegionDistributedLock() throws IllegalStateException;
+ Lock getRegionDistributedLock() throws IllegalStateException;
/**
* For {@link Scope#GLOBAL} regions, gets a <em>distributed</em> lock on the entry with the
@@ -1153,7 +1150,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @throws NullPointerException if key is null
* @throws UnsupportedOperationException If the region is a partitioned region
*/
- public Lock getDistributedLock(Object key) throws IllegalStateException;
+ Lock getDistributedLock(Object key) throws IllegalStateException;
/**
* Initiates a flush to asynchronously write unwritten region entries to disk.
@@ -1166,7 +1163,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @deprecated use {@link DiskStore#flush} instead.
*/
@Deprecated
- public void writeToDisk();
+ void writeToDisk();
/**
* Determines whether there is a value in this <code>Region</code> that matches the given
@@ -1186,8 +1183,8 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.0
*/
- public boolean existsValue(String queryPredicate) throws FunctionDomainException,
- TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
+ boolean existsValue(String queryPredicate) throws FunctionDomainException, TypeMismatchException,
+ NameResolutionException, QueryInvocationTargetException;
/**
* Filters the values of this region using the <code>queryPredicate</code>. The queryPredicate
@@ -1211,7 +1208,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.0
*/
- public <E> SelectResults<E> query(String queryPredicate) throws FunctionDomainException,
+ <E> SelectResults<E> query(String queryPredicate) throws FunctionDomainException,
TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
/**
@@ -1232,8 +1229,8 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see QueryService
* @since GemFire 4.0
*/
- public Object selectValue(String queryPredicate) throws FunctionDomainException,
- TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
+ Object selectValue(String queryPredicate) throws FunctionDomainException, TypeMismatchException,
+ NameResolutionException, QueryInvocationTargetException;
/**
* Asks the region to start writing to a new oplog (if persistence/overflow is turned on). The old
@@ -1249,7 +1246,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @deprecated use {@link DiskStore#forceRoll} instead.
*/
@Deprecated
- public void forceRolling();
+ void forceRolling();
/**
* Specifies this member to become the grantor for this region's lock service. The grantor will be
@@ -1275,7 +1272,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.0
*/
- public void becomeLockGrantor();
+ void becomeLockGrantor();
/**
* Removes all local entries from this region. This is not a distributed operation. This operation
@@ -1287,7 +1284,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheListener#afterRegionClear
*
*/
- public void localClear();
+ void localClear();
////// Map API's ////
/**
@@ -1301,7 +1298,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see CacheWriter#beforeRegionClear
* @throws UnsupportedOperationException If the region is a partitioned region
*/
- public void clear();
+ void clear();
/**
* Returns true if this region maps one or more keys to the specified value. More formally,
@@ -1312,7 +1309,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @since GemFire 5.0
* @see java.util.Map#containsValue(Object)
*/
- public boolean containsValue(Object value);
+ boolean containsValue(Object value);
/**
* Returns the <code>Set</code> of <code>Region.Entry</code> objects in this region.
@@ -1335,7 +1332,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @since GemFire 5.0
* @see java.util.Map#entrySet()
*/
- public Set<Map.Entry<K, V>> entrySet(); // @todo darrel: should be Region.Entry
+ Set<Map.Entry<K, V>> entrySet(); // @todo darrel: should be Region.Entry
/**
* Returns true if this region contains no entries.
@@ -1344,7 +1341,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see java.util.Map#isEmpty()
* @return true if this region contains no entries.
*/
- public boolean isEmpty();
+ boolean isEmpty();
/**
* Copies all of the entries from the specified map to this region. The effect of this call is
@@ -1357,7 +1354,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see java.util.Map#putAll(Map map)
* @throws LowMemoryException if a low memory condition is detected.
*/
- public void putAll(Map<? extends K, ? extends V> map);
+ void putAll(Map<? extends K, ? extends V> map);
/**
* Copies all of the entries from the specified map to this region. The effect of this call is
@@ -1372,7 +1369,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see java.util.Map#putAll(Map map)
* @throws LowMemoryException if a low memory condition is detected.
*/
- public void putAll(Map<? extends K, ? extends V> map, Object aCallbackArgument);
+ void putAll(Map<? extends K, ? extends V> map, Object aCallbackArgument);
/**
* Removes all of the entries for the specified keys from this region. The effect of this call is
@@ -1385,7 +1382,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @since GemFire 8.1
* @see Region#destroy(Object)
*/
- public void removeAll(Collection<? extends K> keys);
+ void removeAll(Collection<? extends K> keys);
/**
* Removes all of the entries for the specified keys from this region. The effect of this call is
@@ -1400,7 +1397,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @since GemFire 8.1
* @see Region#destroy(Object, Object)
*/
- public void removeAll(Collection<? extends K> keys, Object aCallbackArgument);
+ void removeAll(Collection<? extends K> keys, Object aCallbackArgument);
/**
* Gets values for all the keys in the input Collection. If a given key does not exist in the
@@ -1415,7 +1412,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.7
*/
- public Map<K, V> getAll(Collection<?> keys);
+ Map<K, V> getAll(Collection<?> keys);
/**
* Gets and returns values for all the keys in the input Collection. If a given key does not exist
@@ -1434,7 +1431,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 8.1
*/
- public <T extends K> Map<T, V> getAll(Collection<T> keys, Object aCallbackArgument);
+ <T extends K> Map<T, V> getAll(Collection<T> keys, Object aCallbackArgument);
/**
@@ -1467,7 +1464,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.0
*/
- public V remove(Object key);
+ V remove(Object key);
/**
* Returns the number of entries present in this region.
@@ -1482,7 +1479,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @see java.util.Map#size()
* @return the number of entries present in this region
*/
- public int size();
+ int size();
/**
*
@@ -1495,7 +1492,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return <tt>true</tt> if the specified object is equal to this region.
* @see Object#equals
*/
- public boolean equals(Object other);
+ boolean equals(Object other);
/**
* Returns the hash code value for this region. The hash code of a region is based on identity and
@@ -1504,7 +1501,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return the hash code value for this region.
* @see Object#hashCode()
*/
- public int hashCode();
+ int hashCode();
/**
* Sends a request to the CacheServer to register interest in a key for this client. Updates to
@@ -1545,7 +1542,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* enabled.
* @throws UnsupportedOperationException if the region is a replicate with distributed scope.
*/
- public void registerInterest(K key);
+ void registerInterest(K key);
/**
* Sends a request to the CacheServer to register interest in a key for this client. Updates to
@@ -1590,7 +1587,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2.3
*/
- public void registerInterest(K key, InterestResultPolicy policy);
+ void registerInterest(K key, InterestResultPolicy policy);
/**
* Sends a request to the CacheServer to register interest in a regular expression pattern for
@@ -1629,7 +1626,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2.3
*/
- public void registerInterestRegex(String regex);
+ void registerInterestRegex(String regex);
/**
* Sends a request to the CacheServer to register interest in a regular expression pattern for
@@ -1669,7 +1666,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2.3
*/
- public void registerInterestRegex(String regex, InterestResultPolicy policy);
+ void registerInterestRegex(String regex, InterestResultPolicy policy);
/**
* Sends a request to the CacheServer to unregister interest in a key for this client. Updates to
@@ -1682,7 +1679,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2
*/
- public void unregisterInterest(K key);
+ void unregisterInterest(K key);
/**
* Sends a request to the CacheServer to unregister interest in a regular expression pattern for
@@ -1695,7 +1692,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2.3
*/
- public void unregisterInterestRegex(String regex);
+ void unregisterInterestRegex(String regex);
/**
* Returns the list of keys on which this client is interested and will be notified of changes.
@@ -1706,7 +1703,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2
*/
- public List<K> getInterestList();
+ List<K> getInterestList();
/**
@@ -1750,7 +1747,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* enabled.
* @throws UnsupportedOperationException if the region is a replicate with distributed scope.
*/
- public void registerInterest(K key, boolean isDurable);
+ void registerInterest(K key, boolean isDurable);
/**
* Sends a request to the CacheServer to register interest in a key for this client. Updates to
@@ -1796,7 +1793,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* enabled.
* @throws UnsupportedOperationException if the region is a replicate with distributed scope.
*/
- public void registerInterest(K key, boolean isDurable, boolean receiveValues);
+ void registerInterest(K key, boolean isDurable, boolean receiveValues);
/**
* Sends a request to the CacheServer to register interest in a key for this client. Updates to
@@ -1844,7 +1841,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 6.0.3
*/
- public void registerInterest(K key, InterestResultPolicy policy, boolean isDurable,
+ void registerInterest(K key, InterestResultPolicy policy, boolean isDurable,
boolean receiveValues);
/**
@@ -1891,7 +1888,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.5
*/
- public void registerInterest(K key, InterestResultPolicy policy, boolean isDurable);
+ void registerInterest(K key, InterestResultPolicy policy, boolean isDurable);
/**
* Sends a request to the CacheServer to register interest in a regular expression pattern for
@@ -1931,7 +1928,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.5
*/
- public void registerInterestRegex(String regex, boolean isDurable);
+ void registerInterestRegex(String regex, boolean isDurable);
/**
* Sends a request to the CacheServer to register interest in a regular expression pattern for
@@ -1973,7 +1970,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 6.0.3
*/
- public void registerInterestRegex(String regex, boolean isDurable, boolean receiveValues);
+ void registerInterestRegex(String regex, boolean isDurable, boolean receiveValues);
/**
* Sends a request to the CacheServer to register interest in a regular expression pattern for
@@ -2014,7 +2011,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.5
*/
- public void registerInterestRegex(String regex, InterestResultPolicy policy, boolean isDurable);
+ void registerInterestRegex(String regex, InterestResultPolicy policy, boolean isDurable);
/**
* Sends a request to the CacheServer to register interest in a regular expression pattern for
@@ -2057,7 +2054,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 6.0.3
*/
- public void registerInterestRegex(String regex, InterestResultPolicy policy, boolean isDurable,
+ void registerInterestRegex(String regex, InterestResultPolicy policy, boolean isDurable,
boolean receiveValues);
/**
@@ -2070,7 +2067,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 4.2.3
*/
- public List<String> getInterestListRegex();
+ List<String> getInterestListRegex();
/**
* Returns a set of keys in the region on the server.
@@ -2080,7 +2077,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.0.2
*/
- public Set<K> keySetOnServer();
+ Set<K> keySetOnServer();
/**
* Returns whether the specified key currently exists in this region on the server.
@@ -2091,7 +2088,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since GemFire 5.0.2
*/
- public boolean containsKeyOnServer(Object key);
+ boolean containsKeyOnServer(Object key);
/**
* Returns the number of entries present in this region on the server. Entries stored in this
@@ -2102,7 +2099,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since Geode 1.2.0
*/
- public int sizeOnServer();
+ int sizeOnServer();
/**
* Returns true if this region contains no entries on the server.
@@ -2112,7 +2109,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @since Geode 1.2.0
*/
- public boolean isEmptyOnServer();
+ boolean isEmptyOnServer();
/**
* If the specified key is not already associated with a value, associate it with the given value.
@@ -2309,14 +2306,14 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* Cache is closed at the time of invocation, or an <code>EntryDestroyedException</code> if the
* entry has been destroyed.
*/
- public interface Entry<K, V> extends Map.Entry<K, V> {
+ interface Entry<K, V> extends Map.Entry<K, V> {
/**
* Returns the key for this entry.
*
* @return the key for this entry
*/
- public K getKey();
+ K getKey();
/**
* Returns the value of this entry in the local cache. Does not invoke a
@@ -2324,14 +2321,14 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return the value or <code>null</code> if this entry is invalid
*/
- public V getValue();
+ V getValue();
/**
* Returns the region that contains this entry.
*
* @return the Region that contains this entry
*/
- public Region<K, V> getRegion();
+ Region<K, V> getRegion();
/**
* This method checks to see if the entry is in the in-process cache, or is in another process.
@@ -2341,7 +2338,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* corresponding key. To see an updated snapshot of a non-local Entry, you must fetch the entry
* from the Region again.
*/
- public boolean isLocal();
+ boolean isLocal();
/**
* Returns the statistics for this entry.
@@ -2349,14 +2346,14 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @return the CacheStatistics for this entry
* @throws StatisticsDisabledException if statistics have been disabled for this region
*/
- public CacheStatistics getStatistics();
+ CacheStatistics getStatistics();
/**
* Returns the user attribute for this entry in the local cache.
*
* @return the user attribute for this entry
*/
- public Object getUserAttribute();
+ Object getUserAttribute();
/**
* Sets the user attribute for this entry. Does not distribute the user attribute to other
@@ -2365,7 +2362,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @param userAttribute the user attribute for this entry
* @return the previous user attribute or null no user attributes has been set for this entry
*/
- public Object setUserAttribute(Object userAttribute);
+ Object setUserAttribute(Object userAttribute);
/**
* Returns whether this entry has been destroyed.
@@ -2374,7 +2371,7 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
*
* @return true if this entry has been destroyed
*/
- public boolean isDestroyed();
+ boolean isDestroyed();
/**
* Sets the value of this entry. It has similar to calling a put on the key of this Entry
@@ -2392,6 +2389,6 @@ public interface Region<K, V> extends ConcurrentMap<K, V> {
* @since GemFire 5.0
* @see Region#put(Object, Object)
*/
- public V setValue(V value);
+ V setValue(V value);
}
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/RegionAttributes.java b/geode-core/src/main/java/org/apache/geode/cache/RegionAttributes.java
index aa0b548..c47d8ac 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/RegionAttributes.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/RegionAttributes.java
@@ -47,21 +47,21 @@ public interface RegionAttributes<K, V> {
*
* @return the cache loader
*/
- public CacheLoader<K, V> getCacheLoader();
+ CacheLoader<K, V> getCacheLoader();
/**
* Returns the cache writer associated with this region.
*
* @return the cache writer
*/
- public CacheWriter<K, V> getCacheWriter();
+ CacheWriter<K, V> getCacheWriter();
/**
* Returns the class that the keys in this region are constrained to.
*
* @return the <code>Class</code> the keys must be an <code>instanceof</code>
*/
- public Class<K> getKeyConstraint();
+ Class<K> getKeyConstraint();
/**
* Returns the class that the values in this region are constrained to.
@@ -69,7 +69,7 @@ public interface RegionAttributes<K, V> {
* @return the <code>Class</code> the values must be an <code>instanceof</code>
*/
- public Class<V> getValueConstraint();
+ Class<V> getValueConstraint();
/**
@@ -78,7 +78,7 @@ public interface RegionAttributes<K, V> {
*
* @return the timeToLive expiration attributes for this region
*/
- public ExpirationAttributes getRegionTimeToLive();
+ ExpirationAttributes getRegionTimeToLive();
/**
* Gets the idleTimeout expiration attributes for the region as a whole. Default is 0 which
@@ -87,7 +87,7 @@ public interface RegionAttributes<K, V> {
*
* @return the IdleTimeout expiration attributes for this region
*/
- public ExpirationAttributes getRegionIdleTimeout();
+ ExpirationAttributes getRegionIdleTimeout();
/**
* Gets the <code>timeToLive</code> expiration attributes for entries in this region. Default is 0
@@ -95,7 +95,7 @@ public interface RegionAttributes<K, V> {
*
* @return the timeToLive expiration attributes for entries in this region
*/
- public ExpirationAttributes getEntryTimeToLive();
+ ExpirationAttributes getEntryTimeToLive();
/**
* Gets the <code>idleTimeout</code> expiration attributes for entries in this region. Default is
@@ -104,7 +104,7 @@ public interface RegionAttributes<K, V> {
*
* @return the idleTimeout expiration attributes for entries in this region
*/
- public ExpirationAttributes getEntryIdleTimeout();
+ ExpirationAttributes getEntryIdleTimeout();
/**
* Gets the <code>entryTimeToLive</code> <code>CustomExpiry</code>, if any for entries in this
@@ -112,21 +112,21 @@ public interface RegionAttributes<K, V> {
*
* @return the entryTimeToLive CustomExpiry for entries in this region
*/
- public CustomExpiry<K, V> getCustomEntryTimeToLive();
+ CustomExpiry<K, V> getCustomEntryTimeToLive();
/**
* Gets the <code>idleTimeout</code> <code>CustomExpiry</code>, if any for entries in this region
*
* @return the idleTimeout CustomExpiry for entries in this region
*/
- public CustomExpiry<K, V> getCustomEntryIdleTimeout();
+ CustomExpiry<K, V> getCustomEntryIdleTimeout();
/**
* Gets the flag telling a region to ignore JTA transactions. Default value is set to false.
*
* @since GemFire 5.0
*/
- public boolean getIgnoreJTA();
+ boolean getIgnoreJTA();
/**
* Returns the type of mirroring for this region.
@@ -135,7 +135,7 @@ public interface RegionAttributes<K, V> {
* @deprecated as of GemFire 5.0, use {@link #getDataPolicy} instead.
*/
@Deprecated
- public MirrorType getMirrorType();
+ MirrorType getMirrorType();
/**
@@ -145,7 +145,7 @@ public interface RegionAttributes<K, V> {
* @return the region's <code>DataPolicy</code>
* @since GemFire 5.0
*/
- public DataPolicy getDataPolicy();
+ DataPolicy getDataPolicy();
/**
* Returns the scope of the region. Default scope is DISTRIBUTED_NO_ACK. Please refer the gemfire
@@ -153,7 +153,7 @@ public interface RegionAttributes<K, V> {
*
* @return the region's <code>Scope</code>
*/
- public Scope getScope();
+ Scope getScope();
/**
@@ -162,7 +162,7 @@ public interface RegionAttributes<K, V> {
*
* @return the region's EvictionAttributes
*/
- public EvictionAttributes getEvictionAttributes();
+ EvictionAttributes getEvictionAttributes();
/**
* Returns the cache listener for the region.
@@ -172,7 +172,7 @@ public interface RegionAttributes<K, V> {
* @deprecated as of GemFire 5.0, use {@link #getCacheListeners} instead
*/
@Deprecated
- public CacheListener<K, V> getCacheListener();
+ CacheListener<K, V> getCacheListener();
/**
* Returns an array of all the cache listeners on this attributes. Modifications to the returned
@@ -181,7 +181,7 @@ public interface RegionAttributes<K, V> {
* @return the region's <code>CacheListener</code>s; an empty array if no listeners
* @since GemFire 5.0
*/
- public CacheListener<K, V>[] getCacheListeners();
+ CacheListener<K, V>[] getCacheListeners();
// MAP ATTRIBUTES
@@ -192,7 +192,7 @@ public interface RegionAttributes<K, V> {
* @return the initial capacity of the entries map
* @see java.util.HashMap
*/
- public int getInitialCapacity();
+ int getInitialCapacity();
/**
* Returns the load factor of the entries map. Default is 0.75.
@@ -200,7 +200,7 @@ public interface RegionAttributes<K, V> {
* @return the load factor of the entries map
* @see java.util.HashMap
*/
- public float getLoadFactor();
+ float getLoadFactor();
/**
* Returns true if this member is configured to be lock grantor for the region. Result will always
@@ -214,7 +214,7 @@ public interface RegionAttributes<K, V> {
* @see AttributesFactory
* @see Region#becomeLockGrantor
*/
- public boolean isLockGrantor();
+ boolean isLockGrantor();
/**
* Returns true if multicast communications are enabled for this region. Multicast must also be
@@ -224,7 +224,7 @@ public interface RegionAttributes<K, V> {
* @return true if this region is configured to allow use of multicast for distributed messaging
* @see AttributesFactory#setMulticastEnabled
*/
- public boolean getMulticastEnabled();
+ boolean getMulticastEnabled();
/**
* Returns the concurrencyLevel of the entries map. Default is 16.
@@ -232,7 +232,7 @@ public interface RegionAttributes<K, V> {
* @return the concurrencyLevel
* @see AttributesFactory
*/
- public int getConcurrencyLevel();
+ int getConcurrencyLevel();
/**
* Returns whether or not a persistent backup should be made of the region (as opposed to just
@@ -242,7 +242,7 @@ public interface RegionAttributes<K, V> {
* @deprecated as of GemFire 5.0, use {@link DataPolicy#PERSISTENT_REPLICATE} instead
*/
@Deprecated
- public boolean getPersistBackup();
+ boolean getPersistBackup();
/**
* Returns the <code>DiskWriteAttributes</code> that configure how the region is written to disk.
@@ -251,7 +251,7 @@ public interface RegionAttributes<K, V> {
* @deprecated as of 6.5 use {@link #getDiskStoreName} instead.
*/
@Deprecated
- public DiskWriteAttributes getDiskWriteAttributes();
+ DiskWriteAttributes getDiskWriteAttributes();
/**
* Returns the directories to which the region's data are written. If multiple directories are
@@ -261,7 +261,7 @@ public interface RegionAttributes<K, V> {
* @deprecated as of 6.5 use {@link DiskStore#getDiskDirs} instead.
*/
@Deprecated
- public File[] getDiskDirs();
+ File[] getDiskDirs();
/**
* Returns the value of <code>IndexMaintenanceSynchronous</code> which specifies whether the
@@ -270,14 +270,14 @@ public interface RegionAttributes<K, V> {
*
* @since GemFire 4.0
*/
- public boolean getIndexMaintenanceSynchronous();
+ boolean getIndexMaintenanceSynchronous();
/**
* Returns the <code>PartitionAttributes</code> that configure how the region is partitioned.
*
* @since GemFire 5.0
*/
- public PartitionAttributes getPartitionAttributes();
+ PartitionAttributes getPartitionAttributes();
/**
* Returns the <code>MembershipAttributes</code> that configure required roles for reliable access
@@ -285,7 +285,7 @@ public interface RegionAttributes<K, V> {
*
* @deprecated this API is scheduled to be removed
*/
- public MembershipAttributes getMembershipAttributes();
+ MembershipAttributes getMembershipAttributes();
/**
* Returns the <code>SubscriptionAttributes</code> that configure how this region behaves as a
@@ -293,7 +293,7 @@ public interface RegionAttributes<K, V> {
*
* @since GemFire 5.0
*/
- public SubscriptionAttributes getSubscriptionAttributes();
+ SubscriptionAttributes getSubscriptionAttributes();
// STATISTICS
@@ -302,7 +302,7 @@ public interface RegionAttributes<K, V> {
*
* @return true if statistics are enabled
*/
- public boolean getStatisticsEnabled();
+ boolean getStatisticsEnabled();
/**
* Returns whether or not acks are sent after an update is processed.
@@ -314,7 +314,7 @@ public interface RegionAttributes<K, V> {
* @deprecated Setting early ack no longer has any effect.
*/
@Deprecated
- public boolean getEarlyAck();
+ boolean getEarlyAck();
/**
* Returns whether or not this region is a publisher. Publishers are regions on which distributed
@@ -325,7 +325,7 @@ public interface RegionAttributes<K, V> {
* @since GemFire 4.2.3
* @deprecated as of 6.5
*/
- public boolean getPublisher();
+ boolean getPublisher();
/**
* Returns whether or not conflation is enabled for sending messages from a cache server to its
@@ -340,7 +340,7 @@ public interface RegionAttributes<K, V> {
* @since GemFire 4.2
*/
@Deprecated
- public boolean getEnableConflation();
+ boolean getEnableConflation();
/**
* Returns whether or not conflation is enabled for sending messages from a cache server to its
@@ -355,7 +355,7 @@ public interface RegionAttributes<K, V> {
* @deprecated as of GemFire 5.0, use {@link #getEnableSubscriptionConflation} instead
*/
@Deprecated
- public boolean getEnableBridgeConflation();
+ boolean getEnableBridgeConflation();
/**
* Returns whether or not conflation is enabled for sending messages from a cache server to its
@@ -370,7 +370,7 @@ public interface RegionAttributes<K, V> {
*
* @since GemFire 5.7
*/
- public boolean getEnableSubscriptionConflation();
+ boolean getEnableSubscriptionConflation();
/**
* Returns whether or not async conflation is enabled for sending messages to async peers.
@@ -381,7 +381,7 @@ public interface RegionAttributes<K, V> {
*
* @since GemFire 4.2.3
*/
- public boolean getEnableAsyncConflation();
+ boolean getEnableAsyncConflation();
/**
* Returns the sizes of the disk directories in megabytes
@@ -389,7 +389,7 @@ public interface RegionAttributes<K, V> {
* @return int[] sizes of the disk directories
* @deprecated as of 6.5 use {@link DiskStore#getDiskDirSizes} instead.
*/
- public int[] getDiskDirSizes();
+ int[] getDiskDirSizes();
/**
@@ -400,7 +400,7 @@ public interface RegionAttributes<K, V> {
* communication; <code>null</code> is returned if the region communicates with peers.
* @since GemFire 5.7
*/
- public String getPoolName();
+ String getPoolName();
/**
* Returns whether or not cloning is enabled on region. Default is false.
@@ -409,7 +409,7 @@ public interface RegionAttributes<K, V> {
*
* @since GemFire 6.1
*/
- public boolean getCloningEnabled();
+ boolean getCloningEnabled();
/**
* Returns the name of the {@link DiskStore} that this region belongs to, if any. Returns
@@ -419,7 +419,7 @@ public interface RegionAttributes<K, V> {
* region belongs to default {@link DiskStore}.
* @since GemFire 6.5
*/
- public String getDiskStoreName();
+ String getDiskStoreName();
/**
* Returns true if configured synchronous disk writes. Default is set to true.
@@ -427,17 +427,17 @@ public interface RegionAttributes<K, V> {
* @return Returns true if writes to disk are synchronous and false otherwise
* @since GemFire 6.5
*/
- public boolean isDiskSynchronous();
+ boolean isDiskSynchronous();
/**
* Returns a set of gatewaysenderIds
*/
- public Set<String> getGatewaySenderIds();
+ Set<String> getGatewaySenderIds();
/**
* Returns a set of AsyncEventQueueIds added to the region
*/
- public Set<String> getAsyncEventQueueIds();
+ Set<String> getAsyncEventQueueIds();
/**
* Returns true if concurrent update checks are turned on for this region.
@@ -451,7 +451,7 @@ public interface RegionAttributes<K, V> {
* @since GemFire 7.0
* @return true if concurrent update checks are turned on
*/
- public boolean getConcurrencyChecksEnabled();
+ boolean getConcurrencyChecksEnabled();
/**
* Returns the compressor used by this region's entry values.
@@ -459,7 +459,7 @@ public interface RegionAttributes<K, V> {
* @since GemFire 8.0
* @return null if the region does not have compression enabled.
*/
- public Compressor getCompressor();
+ Compressor getCompressor();
/**
* Returns whether or not this region uses off-heap memory.
@@ -468,5 +468,5 @@ public interface RegionAttributes<K, V> {
* disabled (default).
* @since Geode 1.0
*/
- public boolean getOffHeap();
+ boolean getOffHeap();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/RegionEvent.java b/geode-core/src/main/java/org/apache/geode/cache/RegionEvent.java
index 7892372..4eed45f 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/RegionEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/RegionEvent.java
@@ -33,6 +33,6 @@ public interface RegionEvent<K, V> extends CacheEvent<K, V> {
* Return true if this region was destroyed but is being reinitialized, for example if a snapshot
* was just loaded. Can only return true for an event related to region destruction.
*/
- public boolean isReinitializing();
+ boolean isReinitializing();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/RegionMembershipListener.java b/geode-core/src/main/java/org/apache/geode/cache/RegionMembershipListener.java
index 3bd5f3f..506bd11 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/RegionMembershipListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/RegionMembershipListener.java
@@ -46,14 +46,14 @@ public interface RegionMembershipListener<K, V> extends CacheListener<K, V> {
* @param initialMembers an array of the other members that have this region at the time this
* listener is added.
*/
- public void initialMembers(Region<K, V> region, DistributedMember[] initialMembers);
+ void initialMembers(Region<K, V> region, DistributedMember[] initialMembers);
/**
* Invoked when another member has created the distributed region this listener is on.
*
* @param event the event from the member whose region was created.
*/
- public void afterRemoteRegionCreate(RegionEvent<K, V> event);
+ void afterRemoteRegionCreate(RegionEvent<K, V> event);
/**
* Invoked when another member's distributed region is no longer available to this cache due to
@@ -68,7 +68,7 @@ public interface RegionMembershipListener<K, V> extends CacheListener<K, V> {
*
* @param event the event from the member whose region is no longer available.
*/
- public void afterRemoteRegionDeparture(RegionEvent<K, V> event);
+ void afterRemoteRegionDeparture(RegionEvent<K, V> event);
/**
* Invoked when another member's distributed region is no longer available to this cache because
@@ -77,5 +77,5 @@ public interface RegionMembershipListener<K, V> extends CacheListener<K, V> {
*
* @param event the event from the member whose region is no longer available.
*/
- public void afterRemoteRegionCrash(RegionEvent<K, V> event);
+ void afterRemoteRegionCrash(RegionEvent<K, V> event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/RegionRoleListener.java b/geode-core/src/main/java/org/apache/geode/cache/RegionRoleListener.java
index f0b0c62..b9c168f 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/RegionRoleListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/RegionRoleListener.java
@@ -35,13 +35,13 @@ public interface RegionRoleListener<K, V> extends CacheListener<K, V> {
*
* @param event describes the member that fills the required role.
*/
- public void afterRoleGain(RoleEvent<K, V> event);
+ void afterRoleGain(RoleEvent<K, V> event);
/**
* Invoked when a required role is no longer available in the distributed system.
*
* @param event describes the member that last filled the required role.
*/
- public void afterRoleLoss(RoleEvent<K, V> event);
+ void afterRoleLoss(RoleEvent<K, V> event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/RegionService.java b/geode-core/src/main/java/org/apache/geode/cache/RegionService.java
index 5731569..2c23ac6 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/RegionService.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/RegionService.java
@@ -49,7 +49,7 @@ public interface RegionService extends AutoCloseable {
*
* @return the service's cancellation object
*/
- public CancelCriterion getCancelCriterion();
+ CancelCriterion getCancelCriterion();
/**
* Return the existing region (or subregion) with the specified path. Whether or not the path
@@ -59,7 +59,7 @@ public interface RegionService extends AutoCloseable {
* @return the Region or null if not found
* @throws IllegalArgumentException if path is null, the empty string, or "/"
*/
- public <K, V> Region<K, V> getRegion(String path);
+ <K, V> Region<K, V> getRegion(String path);
/**
* Returns unmodifiable set of the root regions that are in the region service. This set is a
@@ -67,7 +67,7 @@ public interface RegionService extends AutoCloseable {
*
* @return a Set of regions
*/
- public Set<Region<?, ?>> rootRegions();
+ Set<Region<?, ?>> rootRegions();
// We did not have time to add this feature to 6.6.2
// /**
@@ -96,7 +96,7 @@ public interface RegionService extends AutoCloseable {
* @return the factory
* @since GemFire 6.6.2
*/
- public PdxInstanceFactory createPdxInstanceFactory(String className);
+ PdxInstanceFactory createPdxInstanceFactory(String className);
/**
* Creates and returns a PdxInstance that represents an enum value.
@@ -108,14 +108,14 @@ public interface RegionService extends AutoCloseable {
* @throws IllegalArgumentException if className or enumName are <code>null</code>.
* @since GemFire 6.6.2
*/
- public PdxInstance createPdxEnum(String className, String enumName, int enumOrdinal);
+ PdxInstance createPdxEnum(String className, String enumName, int enumOrdinal);
/**
* Return the QueryService for this region service. For a region service in a client the returned
* QueryService will execute queries on the server. For a region service not in a client the
* returned QueryService will execute queries on the local and peer regions.
*/
- public QueryService getQueryService();
+ QueryService getQueryService();
/**
* Terminates this region service and releases all its resources. Calls {@link Region#close} on
@@ -125,7 +125,7 @@ public interface RegionService extends AutoCloseable {
*
* @throws CacheClosedException if the service is already closed.
*/
- public void close();
+ void close();
/**
* Indicates if this region service has been closed. After a new service is created, this method
@@ -134,5 +134,5 @@ public interface RegionService extends AutoCloseable {
*
* @return true, if this service has just been created or has started to close; false, otherwise
*/
- public boolean isClosed();
+ boolean isClosed();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/RoleEvent.java b/geode-core/src/main/java/org/apache/geode/cache/RoleEvent.java
index cb1ba4a..e538de8 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/RoleEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/RoleEvent.java
@@ -29,6 +29,6 @@ public interface RoleEvent<K, V> extends RegionEvent<K, V> {
/**
* Returns the required roles that were lost or gained because of this event.
*/
- public Set<String> getRequiredRoles();
+ Set<String> getRequiredRoles();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/SerializedCacheValue.java b/geode-core/src/main/java/org/apache/geode/cache/SerializedCacheValue.java
index cb41d0a..d62d1dc 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/SerializedCacheValue.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/SerializedCacheValue.java
@@ -40,7 +40,7 @@ public interface SerializedCacheValue<V> {
* EntryEvent that this serialize value was obtained from returns and this value does not
* already have the serialized value.
*/
- public byte[] getSerializedValue();
+ byte[] getSerializedValue();
/**
* Returns the deserialized object for this cache value.
@@ -49,5 +49,5 @@ public interface SerializedCacheValue<V> {
* @throws IllegalStateException if off-heap and called after the method that was passed the
* EntryEvent that this serialize value was obtained from returns.
*/
- public V getDeserializedValue();
+ V getDeserializedValue();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/TransactionEvent.java b/geode-core/src/main/java/org/apache/geode/cache/TransactionEvent.java
index 1725d2d..f594ec3 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/TransactionEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/TransactionEvent.java
@@ -15,7 +15,7 @@
package org.apache.geode.cache;
-import java.util.*;
+import java.util.List;
/**
* <p>
@@ -53,7 +53,7 @@ public interface TransactionEvent {
* Gets the <code>TransactionId</code> associated this TransactionEvent.
*
*/
- public TransactionId getTransactionId();
+ TransactionId getTransactionId();
/**
* Returns an ordered list of every {@link CacheEvent} for this transaction. The event order is
@@ -63,13 +63,13 @@ public interface TransactionEvent {
* operation performed by this transaction.
* @since GemFire 5.0
*/
- public List<CacheEvent<?, ?>> getEvents();
+ List<CacheEvent<?, ?>> getEvents();
/**
* Gets the Cache for this transaction event
*
* @return <code>Cache</code>
*/
- public Cache getCache();
+ Cache getCache();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/TransactionListener.java b/geode-core/src/main/java/org/apache/geode/cache/TransactionListener.java
index b1f8c3d..58a91ed 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/TransactionListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/TransactionListener.java
@@ -47,7 +47,7 @@ public interface TransactionListener extends CacheCallback {
* @param event the TransactionEvent
* @see CacheTransactionManager#commit
*/
- public void afterCommit(TransactionEvent event);
+ void afterCommit(TransactionEvent event);
/**
* Called after an unsuccessful commit operation.
@@ -55,7 +55,7 @@ public interface TransactionListener extends CacheCallback {
* @param event the TransactionEvent
* @see CacheTransactionManager#commit
*/
- public void afterFailedCommit(TransactionEvent event);
+ void afterFailedCommit(TransactionEvent event);
/**
* Called after an explicit rollback of a transaction.
@@ -64,5 +64,5 @@ public interface TransactionListener extends CacheCallback {
* @see CacheTransactionManager#rollback
* @see CacheTransactionManager#commit
*/
- public void afterRollback(TransactionEvent event);
+ void afterRollback(TransactionEvent event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/TransactionWriter.java b/geode-core/src/main/java/org/apache/geode/cache/TransactionWriter.java
index 1eba49a..9ce4994 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/TransactionWriter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/TransactionWriter.java
@@ -45,6 +45,6 @@ public interface TransactionWriter extends CacheCallback {
* @see CacheTransactionManager#commit
* @throws TransactionWriterException in the event that the transaction should be rolled back
*/
- public void beforeCommit(TransactionEvent event) throws TransactionWriterException;
+ void beforeCommit(TransactionEvent event) throws TransactionWriterException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEvent.java b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEvent.java
index 7ee8a14..50aaba6 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEvent.java
@@ -26,7 +26,7 @@ public interface AsyncEvent<K, V> extends GatewayQueueEvent<K, V> {
/**
* Returns whether possibleDuplicate is set for this event.
*/
- public boolean getPossibleDuplicate();
+ boolean getPossibleDuplicate();
/**
* Returns the wrapper over the DistributedMembershipID, ThreadID, SequenceID which are used to
@@ -34,5 +34,5 @@ public interface AsyncEvent<K, V> extends GatewayQueueEvent<K, V> {
* events belonging to a unique producer. e.g. The EventID can be used to track events received by
* <code>AsyncEventListener</code> to avoid processing duplicates.
*/
- public EventSequenceID getEventSequenceID();
+ EventSequenceID getEventSequenceID();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
index e859fc8..64d0a7d 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventListener.java
@@ -69,5 +69,5 @@ public interface AsyncEventListener extends CacheCallback {
* @return boolean True represents whether the events were successfully processed, false
* otherwise.
*/
- public boolean processEvents(List<AsyncEvent> events);
+ boolean processEvents(List<AsyncEvent> events);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueue.java b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueue.java
index 0388c18..1946b96 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueue.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueue.java
@@ -31,21 +31,21 @@ public interface AsyncEventQueue {
/**
* @return String Id of the AsyncEventQueue
*/
- public String getId();
+ String getId();
/**
* The Disk store that is required for overflow and persistence
*
* @return String
*/
- public String getDiskStoreName();// for overflow and persistence
+ String getDiskStoreName();// for overflow and persistence
/**
* The maximum memory after which the data needs to be overflowed to disk. Default is 100 MB.
*
* @return int
*/
- public int getMaximumQueueMemory();// for overflow
+ int getMaximumQueueMemory();// for overflow
/**
* Represents the size of a batch that gets delivered over the AsyncEventQueue. Default batchSize
@@ -53,7 +53,7 @@ public interface AsyncEventQueue {
*
* @return int
*/
- public int getBatchSize();
+ int getBatchSize();
/**
* Represents the maximum time interval that can elapse before a batch is sent from
@@ -61,7 +61,7 @@ public interface AsyncEventQueue {
*
* @return int
*/
- public int getBatchTimeInterval();
+ int getBatchTimeInterval();
/**
* Represents whether batch conflation is enabled for batches sent from
@@ -69,7 +69,7 @@ public interface AsyncEventQueue {
*
* @return boolean
*/
- public boolean isBatchConflationEnabled();
+ boolean isBatchConflationEnabled();
/**
* Represents whether the AsyncEventQueue is configured to be persistent or non-persistent.
@@ -77,14 +77,14 @@ public interface AsyncEventQueue {
*
* @return boolean
*/
- public boolean isPersistent();
+ boolean isPersistent();
/**
* Represents whether writing to disk is synchronous or not. Default is true.
*
* @return boolean
*/
- public boolean isDiskSynchronous();
+ boolean isDiskSynchronous();
/**
* Represents whether the queue is primary or secondary. Events get delivered only by the primary
@@ -93,7 +93,7 @@ public interface AsyncEventQueue {
*
* @return boolean
*/
- public boolean isPrimary();
+ boolean isPrimary();
/**
* The <code>AsyncEventListener</code> that is attached to the queue. All the event passing over
@@ -101,14 +101,14 @@ public interface AsyncEventQueue {
*
* @return AsyncEventListener Implementation of AsyncEventListener
*/
- public AsyncEventListener getAsyncEventListener();
+ AsyncEventListener getAsyncEventListener();
/**
* Represents whether this queue is parallel (higher throughput) or serial.
*
* @return boolean True if the queue is parallel, false otherwise.
*/
- public boolean isParallel();
+ boolean isParallel();
/**
* Returns the number of dispatcher threads working for this <code>AsyncEventQueue</code>. Default
@@ -116,7 +116,7 @@ public interface AsyncEventQueue {
*
* @return the number of dispatcher threads working for this <code>AsyncEventQueue</code>
*/
- public int getDispatcherThreads();
+ int getDispatcherThreads();
/**
* Returns the order policy followed while dispatching the events to AsyncEventListener. Order
@@ -124,28 +124,28 @@ public interface AsyncEventQueue {
*
* @return the order policy followed while dispatching the events to AsyncEventListener.
*/
- public OrderPolicy getOrderPolicy();
+ OrderPolicy getOrderPolicy();
/**
* Returns the number of entries in this <code>AsyncEventQueue</code>.
*
* @return the number of entries in this <code>AsyncEventQueue</code>.
*/
- public int size();
+ int size();
/**
* Returns the <code>GatewayEventFilters</code> for this <code>AsyncEventQueue</code>
*
* @return the <code>GatewayEventFilters</code> for this <code>AsyncEventQueue</code>
*/
- public List<GatewayEventFilter> getGatewayEventFilters();
+ List<GatewayEventFilter> getGatewayEventFilters();
/**
* Returns the <code>GatewayEventSubstitutionFilter</code> for this <code>AsyncEventQueue</code>
*
* @return the <code>GatewayEventSubstitutionFilter</code> for this <code>AsyncEventQueue</code>
*/
- public GatewayEventSubstitutionFilter getGatewayEventSubstitutionFilter();
+ GatewayEventSubstitutionFilter getGatewayEventSubstitutionFilter();
/**
* Represents if expiration destroy operations are forwarded (passed) to
@@ -153,6 +153,6 @@ public interface AsyncEventQueue {
*
* @return boolean True if expiration destroy operations are forwarded.
*/
- public boolean isForwardExpirationDestroy();
+ boolean isForwardExpirationDestroy();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueueFactory.java b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueueFactory.java
index 2ca0d16..e67afdb 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueueFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/asyncqueue/AsyncEventQueueFactory.java
@@ -14,12 +14,9 @@
*/
package org.apache.geode.cache.asyncqueue;
-import java.util.List;
-
import org.apache.geode.cache.wan.GatewayEventFilter;
import org.apache.geode.cache.wan.GatewayEventSubstitutionFilter;
import org.apache.geode.cache.wan.GatewaySender.OrderPolicy;
-import org.apache.geode.cache.wan.GatewaySenderFactory;
/**
* Factory to create the <code>AsyncEventQueue</code>. Below example illustrates how to get the
@@ -52,7 +49,7 @@ public interface AsyncEventQueueFactory {
*
* @param name
*/
- public AsyncEventQueueFactory setDiskStoreName(String name);
+ AsyncEventQueueFactory setDiskStoreName(String name);
/**
* Sets the maximum amount of memory (in MB) for an <code>AsyncEventQueue</code>'s queue. Default
@@ -60,7 +57,7 @@ public interface AsyncEventQueueFactory {
*
* @param memory The maximum amount of memory (in MB) for an <code>AsyncEventQueue</code>'s queue
*/
- public AsyncEventQueueFactory setMaximumQueueMemory(int memory);
+ AsyncEventQueueFactory setMaximumQueueMemory(int memory);
/**
* Sets whether or not the writing to the disk is synchronous. Default is true.
@@ -68,14 +65,14 @@ public interface AsyncEventQueueFactory {
* @param isSynchronous boolean if true indicates synchronous writes
*
*/
- public AsyncEventQueueFactory setDiskSynchronous(boolean isSynchronous);
+ AsyncEventQueueFactory setDiskSynchronous(boolean isSynchronous);
/**
* Sets the batch size for an <code>AsyncEventQueue</code>'s queue. Default is 100.
*
* @param size The size of batches sent to its <code>AsyncEventListener</code>
*/
- public AsyncEventQueueFactory setBatchSize(int size);
+ AsyncEventQueueFactory setBatchSize(int size);
/**
* Sets the batch time interval (in milliseconds) for a <code>AsyncEventQueue</code>. Default is 5
@@ -84,14 +81,14 @@ public interface AsyncEventQueueFactory {
* @param interval The maximum time interval that can elapse before a partial batch is sent from a
* <code>AsyncEventQueue</code>.
*/
- public AsyncEventQueueFactory setBatchTimeInterval(int interval);
+ AsyncEventQueueFactory setBatchTimeInterval(int interval);
/**
* Sets whether the <code>AsyncEventQueue</code> is persistent or not. Default is false.
*
* @param isPersistent Whether to enable persistence for an <code>AsyncEventQueue</code>.
*/
- public AsyncEventQueueFactory setPersistent(boolean isPersistent);
+ AsyncEventQueueFactory setPersistent(boolean isPersistent);
/**
* Indicates whether all VMs need to distribute events to remote site. In this case only the
@@ -100,7 +97,7 @@ public interface AsyncEventQueueFactory {
* @param isParallel boolean to indicate whether distribution policy is parallel
*/
- public AsyncEventQueueFactory setParallel(boolean isParallel);
+ AsyncEventQueueFactory setParallel(boolean isParallel);
/**
* Sets whether to enable batch conflation for <code>AsyncEventQueue</code>. Default is false.
@@ -108,14 +105,14 @@ public interface AsyncEventQueueFactory {
* @param isConflation Whether or not to enable batch conflation for batches sent from a
* <code>AsyncEventQueue</code>
*/
- public AsyncEventQueueFactory setBatchConflationEnabled(boolean isConflation);
+ AsyncEventQueueFactory setBatchConflationEnabled(boolean isConflation);
/**
* Sets the number of dispatcher thread. Default is 5.
*
* @param numThreads
*/
- public AsyncEventQueueFactory setDispatcherThreads(int numThreads);
+ AsyncEventQueueFactory setDispatcherThreads(int numThreads);
/**
* Adds a <code>GatewayEventFilter</code> to the attributes of AsyncEventQueue being created by
@@ -123,7 +120,7 @@ public interface AsyncEventQueueFactory {
*
* @param filter GatewayEventFilter
*/
- public AsyncEventQueueFactory addGatewayEventFilter(GatewayEventFilter filter);
+ AsyncEventQueueFactory addGatewayEventFilter(GatewayEventFilter filter);
/**
* Removes the provided <code>GatewayEventFilter</code> from the attributes of AsyncEventQueue
@@ -131,22 +128,21 @@ public interface AsyncEventQueueFactory {
*
* @param filter
*/
- public AsyncEventQueueFactory removeGatewayEventFilter(GatewayEventFilter filter);
+ AsyncEventQueueFactory removeGatewayEventFilter(GatewayEventFilter filter);
/**
* Sets the order policy for multiple dispatchers. Default is KEY.
*
* @param policy
*/
- public AsyncEventQueueFactory setOrderPolicy(OrderPolicy policy);
+ AsyncEventQueueFactory setOrderPolicy(OrderPolicy policy);
/**
* Sets the <code>GatewayEventSubstitutionFilter</code>.
*
* @param filter The <code>GatewayEventSubstitutionFilter</code>
*/
- public AsyncEventQueueFactory setGatewayEventSubstitutionListener(
- GatewayEventSubstitutionFilter filter);
+ AsyncEventQueueFactory setGatewayEventSubstitutionListener(GatewayEventSubstitutionFilter filter);
/**
* Forwards destroy operations from expiration action to AsyncEventQueue. By default the
@@ -155,7 +151,7 @@ public interface AsyncEventQueueFactory {
*
* @param forward boolean to indicate whether to forward expiration destroy events.
*/
- public AsyncEventQueueFactory setForwardExpirationDestroy(boolean forward);
+ AsyncEventQueueFactory setForwardExpirationDestroy(boolean forward);
/**
* Creates the <code>AsyncEventQueue</code>. It accepts Id of AsyncEventQueue and instance of
@@ -169,5 +165,5 @@ public interface AsyncEventQueueFactory {
* @param listener <code>AsyncEventListener</code> to be added to the regions that are configured
* to use this queue.
*/
- public AsyncEventQueue create(String id, AsyncEventListener listener);
+ AsyncEventQueue create(String id, AsyncEventListener listener);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/ClientCache.java b/geode-core/src/main/java/org/apache/geode/cache/client/ClientCache.java
index 1a743ff..9b19c7e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/ClientCache.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/ClientCache.java
@@ -19,7 +19,10 @@ import java.net.InetSocketAddress;
import java.util.Properties;
import java.util.Set;
-import org.apache.geode.cache.*;
+import org.apache.geode.cache.CacheClosedException;
+import org.apache.geode.cache.GemFireCache;
+import org.apache.geode.cache.Region;
+import org.apache.geode.cache.RegionService;
import org.apache.geode.cache.query.QueryService;
/**
@@ -58,13 +61,13 @@ public interface ClientCache extends GemFireCache {
* Return the QueryService for the named pool. The query operations performed using this
* QueryService will be executed on the servers that are associated with this pool.
*/
- public QueryService getQueryService(String poolName);
+ QueryService getQueryService(String poolName);
/**
* Return a QueryService that queries the local state in the client cache. These queries will not
* be sent to a server.
*/
- public QueryService getLocalQueryService();
+ QueryService getLocalQueryService();
/**
* Terminates this object cache and releases all the resources. Calls {@link Region#close} on each
@@ -75,7 +78,7 @@ public interface ClientCache extends GemFireCache {
* timeout period
* @throws CacheClosedException if the cache is already closed.
*/
- public void close(boolean keepalive);
+ void close(boolean keepalive);
/**
* Create and return a client region factory that is initialized to create a region using the
@@ -84,7 +87,7 @@ public interface ClientCache extends GemFireCache {
* @param shortcut the predefined region attributes to initialize the factory with.
* @return a factory that will produce a client region.
*/
- public <K, V> ClientRegionFactory<K, V> createClientRegionFactory(ClientRegionShortcut shortcut);
+ <K, V> ClientRegionFactory<K, V> createClientRegionFactory(ClientRegionShortcut shortcut);
/**
* Create and return a client region factory that is initialized to create a region using the
@@ -97,7 +100,7 @@ public interface ClientCache extends GemFireCache {
* @throws IllegalStateException if named region attributes has not been defined.
* @return a factory that will produce a client region.
*/
- public <K, V> ClientRegionFactory<K, V> createClientRegionFactory(String regionAttributesId);
+ <K, V> ClientRegionFactory<K, V> createClientRegionFactory(String regionAttributesId);
/**
* Notifies the server that this durable client is ready to receive updates. This method is used
@@ -112,7 +115,7 @@ public interface ClientCache extends GemFireCache {
*
* @throws IllegalStateException if called by a non-durable client
*/
- public void readyForEvents();
+ void readyForEvents();
/**
* Creates an authenticated cache view using the given user security properties on the client
@@ -134,7 +137,7 @@ public interface ClientCache extends GemFireCache {
* @return the {@link RegionService} instance associated with a user and the given properties.
* @throws UnsupportedOperationException when invoked with multiuser-authentication as false.
*/
- public RegionService createAuthenticatedView(Properties userSecurityProperties);
+ RegionService createAuthenticatedView(Properties userSecurityProperties);
/**
* Creates an authenticated cache view using the given user security properties using the given
@@ -149,14 +152,14 @@ public interface ClientCache extends GemFireCache {
* @param poolName - the pool that the users should be authenticated against.
* @return the {@link RegionService} instance associated with a user and the given properties.
*/
- public RegionService createAuthenticatedView(Properties userSecurityProperties, String poolName);
+ RegionService createAuthenticatedView(Properties userSecurityProperties, String poolName);
/**
* Returns a set of the servers to which this client is currently connected.
*
* @since GemFire 6.6
*/
- public Set<InetSocketAddress> getCurrentServers();
+ Set<InetSocketAddress> getCurrentServers();
/**
* Returns the default server pool. If one or more non-default pools were configured, this may
@@ -165,6 +168,6 @@ public interface ClientCache extends GemFireCache {
* @since GemFire 7.0
* @see org.apache.geode.cache.client.Pool
*/
- public Pool getDefaultPool();
+ Pool getDefaultPool();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/ClientRegionFactory.java b/geode-core/src/main/java/org/apache/geode/cache/client/ClientRegionFactory.java
index f17da49..bd5badd 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/ClientRegionFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/ClientRegionFactory.java
@@ -65,7 +65,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if <code>aListener</code> is null
* @see AttributesFactory#addCacheListener
*/
- public ClientRegionFactory<K, V> addCacheListener(CacheListener<K, V> aListener);
+ ClientRegionFactory<K, V> addCacheListener(CacheListener<K, V> aListener);
/**
* Removes all cache listeners and then adds each listener in the specified array. for the next
@@ -76,7 +76,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if the <code>newListeners</code> array has a null element
* @see AttributesFactory#initCacheListeners
*/
- public ClientRegionFactory<K, V> initCacheListeners(CacheListener<K, V>[] newListeners);
+ ClientRegionFactory<K, V> initCacheListeners(CacheListener<K, V>[] newListeners);
/**
* Sets the eviction attributes that controls growth of the Region to be created.
@@ -84,7 +84,7 @@ public interface ClientRegionFactory<K, V> {
* @param evictionAttributes for the Region to create
* @return a reference to this ClientRegionFactory object
*/
- public ClientRegionFactory<K, V> setEvictionAttributes(EvictionAttributes evictionAttributes);
+ ClientRegionFactory<K, V> setEvictionAttributes(EvictionAttributes evictionAttributes);
/**
* Sets the idleTimeout expiration attributes for region entries for the next
@@ -95,7 +95,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if idleTimeout is null
* @see AttributesFactory#setEntryIdleTimeout
*/
- public ClientRegionFactory<K, V> setEntryIdleTimeout(ExpirationAttributes idleTimeout);
+ ClientRegionFactory<K, V> setEntryIdleTimeout(ExpirationAttributes idleTimeout);
/**
* Sets the custom idleTimeout for the next <code>RegionAttributes</code> created.
@@ -104,7 +104,7 @@ public interface ClientRegionFactory<K, V> {
* @return the receiver
* @see AttributesFactory#setCustomEntryIdleTimeout(CustomExpiry)
*/
- public ClientRegionFactory<K, V> setCustomEntryIdleTimeout(CustomExpiry<K, V> custom);
+ ClientRegionFactory<K, V> setCustomEntryIdleTimeout(CustomExpiry<K, V> custom);
/**
* Sets the timeToLive expiration attributes for region entries for the next
@@ -115,7 +115,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if timeToLive is null
* @see AttributesFactory#setEntryTimeToLive
*/
- public ClientRegionFactory<K, V> setEntryTimeToLive(ExpirationAttributes timeToLive);
+ ClientRegionFactory<K, V> setEntryTimeToLive(ExpirationAttributes timeToLive);
/**
* Sets the custom timeToLive expiration method for the next <code>RegionAttributes</code>
@@ -125,7 +125,7 @@ public interface ClientRegionFactory<K, V> {
* @return the receiver
* @see AttributesFactory#setCustomEntryTimeToLive(CustomExpiry)
*/
- public ClientRegionFactory<K, V> setCustomEntryTimeToLive(CustomExpiry<K, V> custom);
+ ClientRegionFactory<K, V> setCustomEntryTimeToLive(CustomExpiry<K, V> custom);
/**
* Sets the idleTimeout expiration attributes for the region itself for the next
@@ -136,7 +136,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if idleTimeout is null
* @see AttributesFactory#setRegionIdleTimeout
*/
- public ClientRegionFactory<K, V> setRegionIdleTimeout(ExpirationAttributes idleTimeout);
+ ClientRegionFactory<K, V> setRegionIdleTimeout(ExpirationAttributes idleTimeout);
/**
* Sets the timeToLive expiration attributes for the region itself for the next
@@ -147,7 +147,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if timeToLive is null
* @see AttributesFactory#setRegionTimeToLive
*/
- public ClientRegionFactory<K, V> setRegionTimeToLive(ExpirationAttributes timeToLive);
+ ClientRegionFactory<K, V> setRegionTimeToLive(ExpirationAttributes timeToLive);
/**
* Sets the key constraint for the next <code>RegionAttributes</code> created. Keys in the region
@@ -160,7 +160,7 @@ public interface ClientRegionFactory<K, V> {
* type
* @see AttributesFactory#setKeyConstraint
*/
- public ClientRegionFactory<K, V> setKeyConstraint(Class<K> keyConstraint);
+ ClientRegionFactory<K, V> setKeyConstraint(Class<K> keyConstraint);
/**
* Sets the value constraint for the next <code>RegionAttributes</code> created. Values in the
@@ -173,7 +173,7 @@ public interface ClientRegionFactory<K, V> {
* primitive type
* @see AttributesFactory#setValueConstraint
*/
- public ClientRegionFactory<K, V> setValueConstraint(Class<V> valueConstraint);
+ ClientRegionFactory<K, V> setValueConstraint(Class<V> valueConstraint);
/**
* Sets the entry initial capacity for the next <code>RegionAttributes</code> created. This value
@@ -185,7 +185,7 @@ public interface ClientRegionFactory<K, V> {
* @see java.util.HashMap
* @see AttributesFactory#setInitialCapacity
*/
- public ClientRegionFactory<K, V> setInitialCapacity(int initialCapacity);
+ ClientRegionFactory<K, V> setInitialCapacity(int initialCapacity);
/**
* Sets the entry load factor for the next <code>RegionAttributes</code> created. This value is
@@ -197,7 +197,7 @@ public interface ClientRegionFactory<K, V> {
* @see java.util.HashMap
* @see AttributesFactory#setLoadFactor
*/
- public ClientRegionFactory<K, V> setLoadFactor(float loadFactor);
+ ClientRegionFactory<K, V> setLoadFactor(float loadFactor);
/**
* Sets the concurrency level tof the next <code>RegionAttributes</code> created. This value is
@@ -208,7 +208,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalArgumentException if concurrencyLevel is nonpositive
* @see AttributesFactory#setConcurrencyLevel
*/
- public ClientRegionFactory<K, V> setConcurrencyLevel(int concurrencyLevel);
+ ClientRegionFactory<K, V> setConcurrencyLevel(int concurrencyLevel);
/**
* Enables or disabled concurrent modification checks
@@ -216,7 +216,7 @@ public interface ClientRegionFactory<K, V> {
* @since GemFire 7.0
* @param concurrencyChecksEnabled whether to perform concurrency checks on operations
*/
- public void setConcurrencyChecksEnabled(boolean concurrencyChecksEnabled);
+ void setConcurrencyChecksEnabled(boolean concurrencyChecksEnabled);
/**
* Sets the DiskStore name attribute. This causes the region to belong to the DiskStore.
@@ -226,7 +226,7 @@ public interface ClientRegionFactory<K, V> {
*
* @see AttributesFactory#setDiskStoreName
*/
- public ClientRegionFactory<K, V> setDiskStoreName(String name);
+ ClientRegionFactory<K, V> setDiskStoreName(String name);
/**
* Sets whether or not the writing to the disk is synchronous.
@@ -234,7 +234,7 @@ public interface ClientRegionFactory<K, V> {
* @param isSynchronous boolean if true indicates synchronous writes
* @return a reference to this ClientRegionFactory object
*/
- public ClientRegionFactory<K, V> setDiskSynchronous(boolean isSynchronous);
+ ClientRegionFactory<K, V> setDiskSynchronous(boolean isSynchronous);
/**
* Sets whether statistics are enabled for this region and its entries.
@@ -243,7 +243,7 @@ public interface ClientRegionFactory<K, V> {
* @return a reference to this ClientRegionFactory object
* @see AttributesFactory#setStatisticsEnabled
*/
- public ClientRegionFactory<K, V> setStatisticsEnabled(boolean statisticsEnabled);
+ ClientRegionFactory<K, V> setStatisticsEnabled(boolean statisticsEnabled);
/**
* Sets cloning on region Note: off-heap regions always behave as if cloning is enabled.
@@ -252,7 +252,7 @@ public interface ClientRegionFactory<K, V> {
* @return a reference to this ClientRegionFactory object
* @see AttributesFactory#setCloningEnabled
*/
- public ClientRegionFactory<K, V> setCloningEnabled(boolean cloningEnable);
+ ClientRegionFactory<K, V> setCloningEnabled(boolean cloningEnable);
/**
* Sets the pool name attribute. This causes regions that use these attributes to be a client
@@ -266,7 +266,7 @@ public interface ClientRegionFactory<K, V> {
* @throws IllegalStateException if a cache loader or cache writer has already been set.
* @see PoolManager
*/
- public ClientRegionFactory<K, V> setPoolName(String poolName);
+ ClientRegionFactory<K, V> setPoolName(String poolName);
/**
* Set the compressor to be used by this region for compressing region entry values.
@@ -275,7 +275,7 @@ public interface ClientRegionFactory<K, V> {
* @return a reference to this RegionFactory instance
* @since GemFire 8.0
*/
- public ClientRegionFactory<K, V> setCompressor(Compressor compressor);
+ ClientRegionFactory<K, V> setCompressor(Compressor compressor);
/**
* Creates a region in the {@link ClientCache} using the configuration contained in this
@@ -288,7 +288,7 @@ public interface ClientRegionFactory<K, V> {
* @throws RegionExistsException if a region with the given name already exists in this cache
* @throws CacheClosedException if the cache is closed
*/
- public Region<K, V> create(String name) throws RegionExistsException;
+ Region<K, V> create(String name) throws RegionExistsException;
/**
* Creates a sub-region in the {@link ClientCache} using the configuration contained in this
@@ -304,8 +304,7 @@ public interface ClientRegionFactory<K, V> {
* @throws CacheClosedException if the cache is closed
* @since GemFire 7.0
*/
- public Region<K, V> createSubregion(Region<?, ?> parent, String name)
- throws RegionExistsException;
+ Region<K, V> createSubregion(Region<?, ?> parent, String name) throws RegionExistsException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/Pool.java b/geode-core/src/main/java/org/apache/geode/cache/client/Pool.java
index 3973d09..4b98329 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/Pool.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/Pool.java
@@ -15,9 +15,7 @@
package org.apache.geode.cache.client;
import java.net.InetSocketAddress;
-import java.util.Properties;
-import org.apache.geode.cache.Cache;
import org.apache.geode.cache.RegionFactory;
import org.apache.geode.cache.query.QueryService;
@@ -59,98 +57,98 @@ public interface Pool {
* @return the name of the pool
* @see PoolFactory#create
*/
- public String getName();
+ String getName();
/**
* Returns the socket connect timeout of this pool.
*
* @see PoolFactory#setSocketConnectTimeout(int)
*/
- public int getSocketConnectTimeout();
+ int getSocketConnectTimeout();
/**
* Returns the connection timeout of this pool.
*
* @see PoolFactory#setFreeConnectionTimeout
*/
- public int getFreeConnectionTimeout();
+ int getFreeConnectionTimeout();
/**
* Returns the load conditioning interval of this pool.
*
* @see PoolFactory#setLoadConditioningInterval
*/
- public int getLoadConditioningInterval();
+ int getLoadConditioningInterval();
/**
* Returns the socket buffer size of this pool.
*
* @see PoolFactory#setSocketBufferSize
*/
- public int getSocketBufferSize();
+ int getSocketBufferSize();
/**
* Returns the read timeout of this pool.
*
* @see PoolFactory#setReadTimeout
*/
- public int getReadTimeout();
+ int getReadTimeout();
/**
* Get the minimum connections for this pool.
*
* @see PoolFactory#setMinConnections(int)
*/
- public int getMinConnections();
+ int getMinConnections();
/**
* Get the maximum connections for this pool.
*
* @see PoolFactory#setMaxConnections(int)
*/
- public int getMaxConnections();
+ int getMaxConnections();
/**
* Get the maximum connections for this pool.
*
* @see PoolFactory#setIdleTimeout(long)
*/
- public long getIdleTimeout();
+ long getIdleTimeout();
/**
* Get the ping interval for this pool.
*
* @see PoolFactory#setPingInterval(long)
*/
- public long getPingInterval();
+ long getPingInterval();
/**
* Get the statistic interval for this pool.
*
* @see PoolFactory#setStatisticInterval(int)
*/
- public int getStatisticInterval();
+ int getStatisticInterval();
/**
* Get the retry attempts for this pool.
*
* @see PoolFactory#setRetryAttempts(int)
*/
- public int getRetryAttempts();
+ int getRetryAttempts();
/**
* Returns <code>true</code> if thread local connections are enabled on this pool.
*
* @see PoolFactory#setThreadLocalConnections
*/
- public boolean getThreadLocalConnections();
+ boolean getThreadLocalConnections();
/**
* Returns the true if a server-to-client subscriptions are enabled on this pool.
*
* @see PoolFactory#setSubscriptionEnabled
*/
- public boolean getSubscriptionEnabled();
+ boolean getSubscriptionEnabled();
/**
* Returns true if single-hop optimisation is enabled on this pool.
@@ -158,35 +156,35 @@ public interface Pool {
* @see PoolFactory#setPRSingleHopEnabled
* @since GemFire 6.5
*/
- public boolean getPRSingleHopEnabled();
+ boolean getPRSingleHopEnabled();
/**
* Returns the subscription redundancy level of this pool.
*
* @see PoolFactory#setSubscriptionRedundancy
*/
- public int getSubscriptionRedundancy();
+ int getSubscriptionRedundancy();
/**
* Returns the subscription message tracking timeout of this pool.
*
* @see PoolFactory#setSubscriptionMessageTrackingTimeout
*/
- public int getSubscriptionMessageTrackingTimeout();
+ int getSubscriptionMessageTrackingTimeout();
/**
* Returns the subscription ack interval of this pool.
*
* @see PoolFactory#setSubscriptionAckInterval(int)
*/
- public int getSubscriptionAckInterval();
+ int getSubscriptionAckInterval();
/**
* Returns the server group of this pool.
*
* @see PoolFactory#setServerGroup
*/
- public String getServerGroup();
+ String getServerGroup();
/**
* Returns true if multiuser mode is enabled on this pool.
@@ -194,7 +192,7 @@ public interface Pool {
* @see PoolFactory#setMultiuserAuthentication(boolean)
* @since GemFire 6.5
*/
- public boolean getMultiuserAuthentication();
+ boolean getMultiuserAuthentication();
/**
@@ -204,7 +202,7 @@ public interface Pool {
* <p>
* If a pool has no locators then it can not discover servers or locators at runtime.
*/
- public java.util.List<InetSocketAddress> getLocators();
+ java.util.List<InetSocketAddress> getLocators();
/**
* Returns an unmodifiable list of {@link java.net.InetSocketAddress} of the locators this pool is
@@ -214,14 +212,14 @@ public interface Pool {
* The returned locator list may be slightly old information. If the locator does not exist, an
* empty list is returned.
*/
- public java.util.List<InetSocketAddress> getOnlineLocators();
+ java.util.List<InetSocketAddress> getOnlineLocators();
/**
* Returns an unmodifiable list of {@link java.net.InetSocketAddress} of the servers this pool is
* using. These servers where either {@link PoolFactory#addServer added explicitly} when the pool
* was created or were discovered using this pools {@link #getLocators locators}.
*/
- public java.util.List<InetSocketAddress> getServers();
+ java.util.List<InetSocketAddress> getServers();
/**
* Destroys this pool closing any connections it produced.
@@ -230,21 +228,21 @@ public interface Pool {
* the timeout period
* @throws IllegalStateException if the pool is still in use
*/
- public void destroy(boolean keepAlive);
+ void destroy(boolean keepAlive);
/**
* Destroys this pool closing any connections it produced.
*
* @throws IllegalStateException if the pool is still in use
*/
- public void destroy();
+ void destroy();
/**
* Indicates whether this Pool has been destroyed.
*
* @return true if the pool has been destroyed
*/
- public boolean isDestroyed();
+ boolean isDestroyed();
/**
* If this pool was configured to to use thread local connections, then this method will release
@@ -253,7 +251,7 @@ public interface Pool {
*
* If this pool is not using thread local connections, this method will have no effect.
*/
- public void releaseThreadLocalConnection();
+ void releaseThreadLocalConnection();
/**
* Returns the QueryService for this Pool. The query operations performed using this QueryService
@@ -261,7 +259,7 @@ public interface Pool {
*
* @return the QueryService
*/
- public QueryService getQueryService();
+ QueryService getQueryService();
/**
* Returns the approximate number of pending subscription events maintained at server for this
@@ -291,6 +289,6 @@ public interface Pool {
* invocation of {@link ClientCache#readyForEvents()}.
* @since GemFire 8.1
*/
- public int getPendingEventCount();
+ int getPendingEventCount();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/PoolFactory.java b/geode-core/src/main/java/org/apache/geode/cache/client/PoolFactory.java
index 450149d..40a9ccd 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/PoolFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/PoolFactory.java
@@ -14,8 +14,10 @@
*/
package org.apache.geode.cache.client;
-import org.apache.geode.cache.*;
-import org.apache.geode.cache.query.*;
+import org.apache.geode.cache.InterestResultPolicy;
+import org.apache.geode.cache.Region;
+import org.apache.geode.cache.query.CqAttributes;
+import org.apache.geode.cache.query.QueryService;
import org.apache.geode.cache.server.CacheServer;
@@ -60,7 +62,7 @@ public interface PoolFactory {
* <p>
* Current value: <code>59000</code>.
*/
- public static final int DEFAULT_SOCKET_CONNECT_TIMEOUT = 59000;
+ int DEFAULT_SOCKET_CONNECT_TIMEOUT = 59000;
/**
* The default amount of time, in milliseconds, which we will wait for a free connection if max
@@ -68,7 +70,7 @@ public interface PoolFactory {
* <p>
* Current value: <code>10000</code>.
*/
- public static final int DEFAULT_FREE_CONNECTION_TIMEOUT = 10000;
+ int DEFAULT_FREE_CONNECTION_TIMEOUT = 10000;
/**
* The default interval in which the pool will check to see if a connection to a given server
@@ -76,63 +78,63 @@ public interface PoolFactory {
* <p>
* Current value: <code>300,000</code> (which is 5 minutes).
*/
- public static final int DEFAULT_LOAD_CONDITIONING_INTERVAL = 1000 * 60 * 5;
+ int DEFAULT_LOAD_CONDITIONING_INTERVAL = 1000 * 60 * 5;
/**
* Default size in bytes of the socket buffer on each connection established.
* <p>
* Current value: <code>32768</code>.
*/
- public static final int DEFAULT_SOCKET_BUFFER_SIZE = 32768;
+ int DEFAULT_SOCKET_BUFFER_SIZE = 32768;
/**
* The default amount of time, in milliseconds, to wait for a response from a server
* <p>
* Current value: <code>10000</code>.
*/
- public static final int DEFAULT_READ_TIMEOUT = 10000;
+ int DEFAULT_READ_TIMEOUT = 10000;
/**
* The default number of connections to initially create
* <p>
* Current value: <code>1</code>.
*/
- public static final int DEFAULT_MIN_CONNECTIONS = 1;
+ int DEFAULT_MIN_CONNECTIONS = 1;
/**
* The default maximum number of connections to create
* <p>
* Current value: <code>-1</code>.
*/
- public static final int DEFAULT_MAX_CONNECTIONS = -1;
+ int DEFAULT_MAX_CONNECTIONS = -1;
/**
* The default amount of time in milliseconds, to wait for a connection to become idle
* <p>
* Current value: <code>5000</code>.
*/
- public static final long DEFAULT_IDLE_TIMEOUT = 5000;
+ long DEFAULT_IDLE_TIMEOUT = 5000;
/**
* The default number of times to retry an operation after a timeout or exception.
* <p>
* Current value: <code>-1</code>.
*/
- public static final int DEFAULT_RETRY_ATTEMPTS = -1;
+ int DEFAULT_RETRY_ATTEMPTS = -1;
/**
* The default frequency, in milliseconds, to ping servers.
* <p>
* Current value: <code>10000</code>.
*/
- public static final long DEFAULT_PING_INTERVAL = 10000;
+ long DEFAULT_PING_INTERVAL = 10000;
/**
* The default frequency, in milliseconds, that client statistics will be sent to the server.
* <p>
* Current value: <code>-1</code>.
*/
- public static final int DEFAULT_STATISTIC_INTERVAL = -1;
+ int DEFAULT_STATISTIC_INTERVAL = -1;
/**
* The default value for whether connections should have affinity to the thread that last used
@@ -140,21 +142,21 @@ public interface PoolFactory {
* <p>
* Current value: <code>false</code>.
*/
- public static final boolean DEFAULT_THREAD_LOCAL_CONNECTIONS = false;
+ boolean DEFAULT_THREAD_LOCAL_CONNECTIONS = false;
/**
* The default value for whether to establish a server to client subscription.
* <p>
* Current value: <code>false</code>.
*/
- public static final boolean DEFAULT_SUBSCRIPTION_ENABLED = false;
+ boolean DEFAULT_SUBSCRIPTION_ENABLED = false;
/**
* The default redundancy for servers holding subscriptions established by this client
* <p>
* Current value: <code>0</code>.
*/
- public static final int DEFAULT_SUBSCRIPTION_REDUNDANCY = 0;
+ int DEFAULT_SUBSCRIPTION_REDUNDANCY = 0;
/**
* The default amount of time, in milliseconds, that messages sent from a server to a client will
@@ -162,7 +164,7 @@ public interface PoolFactory {
* <p>
* Current value: <code>900000</code>.
*/
- public static final int DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT = 900000;
+ int DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT = 900000;
/**
* The default amount of time, in milliseconds, to wait before sending an acknowledgement to the
@@ -170,14 +172,14 @@ public interface PoolFactory {
* <p>
* Current value: <code>100</code>.
*/
- public static final int DEFAULT_SUBSCRIPTION_ACK_INTERVAL = 100;
+ int DEFAULT_SUBSCRIPTION_ACK_INTERVAL = 100;
/**
* The default server group.
* <p>
* Current value: <code>""</code>.
*/
- public static final String DEFAULT_SERVER_GROUP = "";
+ String DEFAULT_SERVER_GROUP = "";
/**
* The default value for whether to have single hop optimisations enabled.
@@ -186,7 +188,7 @@ public interface PoolFactory {
*
* @since GemFire 6.5
*/
- public static final boolean DEFAULT_PR_SINGLE_HOP_ENABLED = true;
+ boolean DEFAULT_PR_SINGLE_HOP_ENABLED = true;
/**
* The default value for whether to use multiuser mode.
* <p>
@@ -194,7 +196,7 @@ public interface PoolFactory {
*
* @since GemFire 6.5
*/
- public static final boolean DEFAULT_MULTIUSER_AUTHENTICATION = false;
+ boolean DEFAULT_MULTIUSER_AUTHENTICATION = false;
/**
* Sets the socket connect timeout for this pool. The number of milli seconds specified as socket
@@ -206,7 +208,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>socketConnectTimeout</code> is less than or equal to
* <code>-1</code>.
*/
- public PoolFactory setSocketConnectTimeout(int socketConnectTimeout);
+ PoolFactory setSocketConnectTimeout(int socketConnectTimeout);
/**
* Sets the free connection timeout for this pool. If the pool has a max connections setting,
@@ -221,7 +223,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>connectionTimeout</code> is less than or equal to
* <code>0</code>.
*/
- public PoolFactory setFreeConnectionTimeout(int connectionTimeout);
+ PoolFactory setFreeConnectionTimeout(int connectionTimeout);
/**
* Sets the load conditioning interval for this pool. This interval controls how frequently the
@@ -235,7 +237,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>connectionLifetime</code> is less than
* <code>-1</code>.
*/
- public PoolFactory setLoadConditioningInterval(int loadConditioningInterval);
+ PoolFactory setLoadConditioningInterval(int loadConditioningInterval);
/**
* Sets the socket buffer size for each connection made in this pool. Large messages can be
@@ -248,7 +250,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>bufferSize</code> is less than or equal to
* <code>0</code>.
*/
- public PoolFactory setSocketBufferSize(int bufferSize);
+ PoolFactory setSocketBufferSize(int bufferSize);
/**
* Sets the thread local connections policy for this pool. If <code>true</code> then any time a
@@ -264,7 +266,7 @@ public interface PoolFactory {
* @param threadLocalConnections if <code>true</code> then enable thread local connections.
* @return a reference to <code>this</code>
*/
- public PoolFactory setThreadLocalConnections(boolean threadLocalConnections);
+ PoolFactory setThreadLocalConnections(boolean threadLocalConnections);
/**
* Sets the number of milliseconds to wait for a response from a server before timing out the
@@ -274,7 +276,7 @@ public interface PoolFactory {
* @return a reference to <code>this</code>
* @throws IllegalArgumentException if <code>timeout</code> is less than <code>0</code>.
*/
- public PoolFactory setReadTimeout(int timeout);
+ PoolFactory setReadTimeout(int timeout);
/**
* Set the minimum number of connections to keep available at all times. When the pool is created,
@@ -285,7 +287,7 @@ public interface PoolFactory {
* @return a reference to <code>this</code>
* @throws IllegalArgumentException if <code>minConnections</code> is less than <code>0</code>.
*/
- public PoolFactory setMinConnections(int minConnections);
+ PoolFactory setMinConnections(int minConnections);
/**
* Set the max number of client to server connections that the pool will create. If all of the
@@ -299,7 +301,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>maxConnections</code> is less than
* <code>minConnections</code>.
*/
- public PoolFactory setMaxConnections(int maxConnections);
+ PoolFactory setMaxConnections(int maxConnections);
/**
* Set the amount of time a connection can be idle before expiring the connection. If the pool
@@ -311,7 +313,7 @@ public interface PoolFactory {
* @return a reference to <code>this</code>
* @throws IllegalArgumentException if <code>idleTimout</code> is less than <code>-1</code>.
*/
- public PoolFactory setIdleTimeout(long idleTimeout);
+ PoolFactory setIdleTimeout(long idleTimeout);
/**
* Set the number of times to retry a request after timeout/exception.
@@ -321,7 +323,7 @@ public interface PoolFactory {
* @return a reference to <code>this</code>
* @throws IllegalArgumentException if <code>retryAttempts</code> is less than <code>-1</code>.
*/
- public PoolFactory setRetryAttempts(int retryAttempts);
+ PoolFactory setRetryAttempts(int retryAttempts);
/**
* How often to ping servers to verify that they are still alive. Each server will be sent a ping
@@ -336,7 +338,7 @@ public interface PoolFactory {
* <code>0</code>.
* @see CacheServer#setMaximumTimeBetweenPings(int)
*/
- public PoolFactory setPingInterval(long pingInterval);
+ PoolFactory setPingInterval(long pingInterval);
/**
* How often to send client statistics to the server. Doing this allows <code>gfmon</code> to
@@ -350,7 +352,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>statisticInterval</code> is less than
* <code>-1</code>.
*/
- public PoolFactory setStatisticInterval(int statisticInterval);
+ PoolFactory setStatisticInterval(int statisticInterval);
/**
* Configures the group that all servers this pool connects to must belong to.
@@ -359,7 +361,7 @@ public interface PoolFactory {
* <code>""</code> then all servers will be connected to.
* @return a reference to <code>this</code>
*/
- public PoolFactory setServerGroup(String group);
+ PoolFactory setServerGroup(String group);
/**
* Add a locator, given its host and port, to this factory. The locator must be a server locator
@@ -374,7 +376,7 @@ public interface PoolFactory {
* @throws IllegalStateException if a server has already been {@link #addServer added} to this
* factory.
*/
- public PoolFactory addLocator(String host, int port);
+ PoolFactory addLocator(String host, int port);
/**
* Add a server, given its host and port, to this factory. The server must be a cache server and
@@ -389,7 +391,7 @@ public interface PoolFactory {
* @throws IllegalStateException if a locator has already been {@link #addLocator added} to this
* factory.
*/
- public PoolFactory addServer(String host, int port);
+ PoolFactory addServer(String host, int port);
/**
* If set to <code>true</code> then the created pool will have server-to-client subscriptions
@@ -398,7 +400,7 @@ public interface PoolFactory {
*
* @return a reference to <code>this</code>
*/
- public PoolFactory setSubscriptionEnabled(boolean enabled);
+ PoolFactory setSubscriptionEnabled(boolean enabled);
/**
* Sets the redundancy level for this pools server-to-client subscriptions. If <code>0</code> then
@@ -410,7 +412,7 @@ public interface PoolFactory {
* @return a reference to <code>this</code>
* @throws IllegalArgumentException if <code>redundancyLevel</code> is less than <code>-1</code>.
*/
- public PoolFactory setSubscriptionRedundancy(int redundancy);
+ PoolFactory setSubscriptionRedundancy(int redundancy);
/**
* Sets the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds,
@@ -423,7 +425,7 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>messageTrackingTimeout</code> is less than or equal
* to <code>0</code>.
*/
- public PoolFactory setSubscriptionMessageTrackingTimeout(int messageTrackingTimeout);
+ PoolFactory setSubscriptionMessageTrackingTimeout(int messageTrackingTimeout);
/**
* Sets the interval in milliseconds to wait before sending acknowledgements to the cache server
@@ -434,14 +436,14 @@ public interface PoolFactory {
* @throws IllegalArgumentException if <code>ackInterval</code> is less than or equal to
* <code>0</code>.
*/
- public PoolFactory setSubscriptionAckInterval(int ackInterval);
+ PoolFactory setSubscriptionAckInterval(int ackInterval);
/**
* Resets the configuration of this factory to its defaults.
*
* @return a reference to <code>this</code>
*/
- public PoolFactory reset();
+ PoolFactory reset();
/**
* Create a new Pool for connecting a client to a set of GemFire Cache Servers. using this
@@ -452,7 +454,7 @@ public interface PoolFactory {
* @throws IllegalStateException if a locator or server has not been added.
* @return the newly created pool.
*/
- public Pool create(String name);
+ Pool create(String name);
/**
* By default setPRSingleHopEnabled is <code>true</code> in which case the client is aware of the
@@ -475,7 +477,7 @@ public interface PoolFactory {
* @return a reference to <code>this</code>
* @since GemFire 6.5
*/
- public PoolFactory setPRSingleHopEnabled(boolean enabled);
+ PoolFactory setPRSingleHopEnabled(boolean enabled);
/**
* If set to <code>true</code> then the created pool can be used by multiple authenticated users.
@@ -491,6 +493,6 @@ public interface PoolFactory {
* @see ClientCache#createAuthenticatedView(java.util.Properties)
* @since GemFire 6.5
*/
- public PoolFactory setMultiuserAuthentication(boolean enabled);
+ PoolFactory setMultiuserAuthentication(boolean enabled);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java
index 3e95158..c3f6b18 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java
@@ -321,7 +321,7 @@ public abstract class AbstractOp implements Op {
*
* @param msg the current chunk to handle
*/
- public void handle(ChunkedMessage msg) throws Exception;
+ void handle(ChunkedMessage msg) throws Exception;
}
/**
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ClientUpdater.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ClientUpdater.java
index c993984..38159b5 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ClientUpdater.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ClientUpdater.java
@@ -25,9 +25,9 @@ public interface ClientUpdater {
void join(long wait) throws InterruptedException;
- public void setFailedUpdater(ClientUpdater failedUpdater);
+ void setFailedUpdater(ClientUpdater failedUpdater);
- public boolean isProcessing();
+ boolean isProcessing();
- public boolean isPrimary();
+ boolean isPrimary();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/Connection.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/Connection.java
index 3a5379c..46794df 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/Connection.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/Connection.java
@@ -30,24 +30,24 @@ import org.apache.geode.internal.cache.tier.sockets.ServerQueueStatus;
* @since GemFire 5.7
*/
public interface Connection {
- public static final long DEFAULT_CONNECTION_ID = 26739;
+ long DEFAULT_CONNECTION_ID = 26739;
- public Socket getSocket();
+ Socket getSocket();
- public ByteBuffer getCommBuffer() throws SocketException;
+ ByteBuffer getCommBuffer() throws SocketException;
- public ConnectionStats getStats();
+ ConnectionStats getStats();
/**
* Forcefully close the resources used by this connection. This should be called if the connection
* or the server dies.
*/
- public void destroy();
+ void destroy();
/**
* Return true if this connection has been destroyed
*/
- public boolean isDestroyed();
+ boolean isDestroyed();
/**
* Gracefully close the connection by notifying the server. It is not necessary to call destroy
@@ -57,29 +57,29 @@ public interface Connection {
* @throws Exception if there was an error notifying the server. The connection will still be
* destroyed.
*/
- public void close(boolean keepAlive) throws Exception;
+ void close(boolean keepAlive) throws Exception;
- public ServerLocation getServer();
+ ServerLocation getServer();
- public Endpoint getEndpoint();
+ Endpoint getEndpoint();
- public ServerQueueStatus getQueueStatus();
+ ServerQueueStatus getQueueStatus();
- public Object execute(Op op) throws Exception;
+ Object execute(Op op) throws Exception;
- public void emergencyClose();
+ void emergencyClose();
- public short getWanSiteVersion();
+ short getWanSiteVersion();
- public void setWanSiteVersion(short wanSiteVersion);
+ void setWanSiteVersion(short wanSiteVersion);
- public int getDistributedSystemId();
+ int getDistributedSystemId();
- public OutputStream getOutputStream();
+ OutputStream getOutputStream();
- public InputStream getInputStream();
+ InputStream getInputStream();
- public void setConnectionID(long id);
+ void setConnectionID(long id);
- public long getConnectionID();
+ long getConnectionID();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManager.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManager.java
index f5f549c..6a8758d 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManager.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManager.java
@@ -66,14 +66,14 @@ public interface EndpointManager {
*
* @return a map of ServerLocation-> ConnectionStats
*/
- public Map getAllStats();
+ Map getAllStats();
/**
* Test hook that returns the number of servers we currently have connections to.
*/
- public int getConnectedServerCount();
+ int getConnectedServerCount();
- public static interface EndpointListener {
+ interface EndpointListener {
void endpointNoLongerInUse(Endpoint endpoint);
@@ -82,7 +82,7 @@ public interface EndpointManager {
void endpointNowInUse(Endpoint endpoint);
}
- public static class EndpointListenerAdapter implements EndpointListener {
+ class EndpointListenerAdapter implements EndpointListener {
public void endpointCrashed(Endpoint endpoint) {}
@@ -91,5 +91,5 @@ public interface EndpointManager {
public void endpointNowInUse(Endpoint endpoint) {}
}
- public String getPoolName();
+ String getPoolName();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ExecutablePool.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ExecutablePool.java
index 50d1c11..d86d9e8 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ExecutablePool.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ExecutablePool.java
@@ -32,7 +32,7 @@ public interface ExecutablePool {
* @return the result of execution if any; null if not
* @since GemFire 5.7
*/
- public Object execute(Op op);
+ Object execute(Op op);
/**
* Execute the given op on the servers that this pool connects to. This method is responsible for
@@ -42,7 +42,7 @@ public interface ExecutablePool {
* @return the result of execution if any; null if not
* @since GemFire 5.7
*/
- public Object execute(Op op, int retryAttempts);
+ Object execute(Op op, int retryAttempts);
/**
* Execute the given op on all the servers that have server-to-client queues for this pool The
@@ -53,7 +53,7 @@ public interface ExecutablePool {
* @throws NoSubscriptionServersAvailableException if we have no queue server
* @throws SubscriptionNotEnabledException If the pool does not have queues enabled
*/
- public void executeOnAllQueueServers(Op op)
+ void executeOnAllQueueServers(Op op)
throws NoSubscriptionServersAvailableException, SubscriptionNotEnabledException;
/**
@@ -67,7 +67,7 @@ public interface ExecutablePool {
* @throws SubscriptionNotEnabledException If the pool does not have queues enabled
* @since GemFire 5.7
*/
- public Object executeOnQueuesAndReturnPrimaryResult(Op op)
+ Object executeOnQueuesAndReturnPrimaryResult(Op op)
throws NoSubscriptionServersAvailableException, SubscriptionNotEnabledException;
/**
@@ -77,7 +77,7 @@ public interface ExecutablePool {
* @param op the operation to execute
* @return the result of execution if any; null if not
*/
- public Object executeOn(ServerLocation server, Op op);
+ Object executeOn(ServerLocation server, Op op);
/**
* Execute the given op on the given server.
@@ -87,8 +87,7 @@ public interface ExecutablePool {
* @param accessed true if the connection is accessed by this execute
* @return the result of execution if any; null if not
*/
- public Object executeOn(ServerLocation server, Op op, boolean accessed,
- boolean onlyUseExistingCnx);
+ Object executeOn(ServerLocation server, Op op, boolean accessed, boolean onlyUseExistingCnx);
/**
* Execute the given op on the given connection.
@@ -97,7 +96,7 @@ public interface ExecutablePool {
* @param op the operation to execute
* @return the result of execution if any; null if not
*/
- public Object executeOn(Connection con, Op op);
+ Object executeOn(Connection con, Op op);
/**
* Execute the given op on the given connection.
@@ -107,7 +106,7 @@ public interface ExecutablePool {
* @param timeoutFatal true if a timeout exception should be treated as a fatal one
* @return the result of execution if any; null if not
*/
- public Object executeOn(Connection con, Op op, boolean timeoutFatal);
+ Object executeOn(Connection con, Op op, boolean timeoutFatal);
/**
* Execute the given op on the current primary server.
@@ -115,9 +114,9 @@ public interface ExecutablePool {
* @param op the operation to execute
* @return the result of execution if any; null if not
*/
- public Object executeOnPrimary(Op op);
+ Object executeOnPrimary(Op op);
- public RegisterInterestTracker getRITracker();
+ RegisterInterestTracker getRITracker();
/**
* Release the connection held by the calling thread if we're using thread local connections
@@ -132,14 +131,14 @@ public interface ExecutablePool {
* unreachable. Affinity to the new server will be maintained
* @since GemFire 6.6
*/
- public void setupServerAffinity(boolean allowFailover);
+ void setupServerAffinity(boolean allowFailover);
/**
* Release the server affinity established by {@link #setupServerAffinity(boolean)}
*
* @since GemFire 6.6
*/
- public void releaseServerAffinity();
+ void releaseServerAffinity();
/**
* When server affinity is enabled by this thread, returns the server against which all ops in
@@ -149,7 +148,7 @@ public interface ExecutablePool {
* @since GemFire 6.6
* @see ExecutablePool#setupServerAffinity(boolean)
*/
- public ServerLocation getServerAffinityLocation();
+ ServerLocation getServerAffinityLocation();
/**
* All subsequent operations by this thread will be performed on the given ServerLocation. Used
@@ -158,5 +157,5 @@ public interface ExecutablePool {
* @param serverLocation
* @since GemFire 6.6
*/
- public void setServerAffinityLocation(ServerLocation serverLocation);
+ void setServerAffinityLocation(ServerLocation serverLocation);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueManager.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueManager.java
index f5fc5d3..b917adc 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueManager.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueManager.java
@@ -26,15 +26,15 @@ import org.apache.geode.internal.logging.InternalLogWriter;
*/
public interface QueueManager {
- public QueueConnections getAllConnectionsNoWait();
+ QueueConnections getAllConnectionsNoWait();
- public QueueConnections getAllConnections();
+ QueueConnections getAllConnections();
void start(ScheduledExecutorService background);
void close(boolean keepAlive);
- public static interface QueueConnections {
+ interface QueueConnections {
Connection getPrimary();
List/* <Connection> */ getBackups();
@@ -42,15 +42,15 @@ public interface QueueManager {
QueueConnectionImpl getConnection(Endpoint endpoint);
}
- public QueueState getState();
+ QueueState getState();
- public InternalPool getPool();
+ InternalPool getPool();
- public InternalLogWriter getSecurityLogger();
+ InternalLogWriter getSecurityLogger();
- public void readyForEvents(InternalDistributedSystem system);
+ void readyForEvents(InternalDistributedSystem system);
- public void emergencyClose();
+ void emergencyClose();
- public void checkEndpoint(ClientUpdater qc, Endpoint endpoint);
+ void checkEndpoint(ClientUpdater qc, Endpoint endpoint);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueState.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueState.java
index 2819a5f..5146081 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueState.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueState.java
@@ -20,20 +20,20 @@ import org.apache.geode.internal.cache.EventID;
public interface QueueState {
- public void processMarker();
+ void processMarker();
- public boolean getProcessedMarker();
+ boolean getProcessedMarker();
- public void incrementInvalidatedStats();
+ void incrementInvalidatedStats();
- public boolean verifyIfDuplicate(EventID eventId, boolean addToMap);
+ boolean verifyIfDuplicate(EventID eventId, boolean addToMap);
- public boolean verifyIfDuplicate(EventID eventId);
+ boolean verifyIfDuplicate(EventID eventId);
/**
* test hook
*/
- public java.util.Map getThreadIdToSequenceIdMap();
+ java.util.Map getThreadIdToSequenceIdMap();
- public void start(ScheduledExecutorService timer, int interval);
+ void start(ScheduledExecutorService timer, int interval);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerBlackList.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerBlackList.java
index aacd19e..54549df 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerBlackList.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerBlackList.java
@@ -14,7 +14,11 @@
*/
package org.apache.geode.cache.client.internal;
-import java.util.*;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ScheduledExecutorService;
@@ -145,10 +149,10 @@ public class ServerBlackList {
}
}
- public static interface BlackListListener {
- public void serverAdded(ServerLocation location);
+ public interface BlackListListener {
+ void serverAdded(ServerLocation location);
- public void serverRemoved(ServerLocation location);
+ void serverRemoved(ServerLocation location);
}
public static class BlackListListenerAdapter implements BlackListListener {
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerRegionDataAccess.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerRegionDataAccess.java
index e667be7..584def7 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerRegionDataAccess.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/ServerRegionDataAccess.java
@@ -26,7 +26,6 @@ import org.apache.geode.internal.cache.EntryEventImpl;
import org.apache.geode.internal.cache.EntrySnapshot;
import org.apache.geode.internal.cache.EventID;
import org.apache.geode.internal.cache.tier.sockets.VersionedObjectList;
-import org.apache.geode.internal.cache.tx.TransactionalOperation;
public interface ServerRegionDataAccess {
@@ -38,7 +37,7 @@ public interface ServerRegionDataAccess {
* @param clientEvent the client event, if any, for version propagation
* @return the entry value found by the get if any
*/
- public abstract Object get(Object key, Object callbackArg, EntryEventImpl clientEvent);
+ Object get(Object key, Object callbackArg, EntryEventImpl clientEvent);
/**
* Does a region put on the server
@@ -52,9 +51,8 @@ public interface ServerRegionDataAccess {
* @param callbackArg an optional callback arg to pass to any cache callbacks
* @param isCreateFwd
*/
- public abstract Object put(Object key, Object value, byte[] deltaBytes,
- EntryEventImpl clientEvent, Operation op, boolean requireOldValue, Object expectedOldValue,
- Object callbackArg, boolean isCreateFwd);
+ Object put(Object key, Object value, byte[] deltaBytes, EntryEventImpl clientEvent, Operation op,
+ boolean requireOldValue, Object expectedOldValue, Object callbackArg, boolean isCreateFwd);
/**
@@ -66,7 +64,7 @@ public interface ServerRegionDataAccess {
* @param clientEvent the client event, if any, for version propagation
* @param callbackArg an optional callback arg to pass to any cache callbacks
*/
- public abstract Object destroy(Object key, Object expectedOldValue, Operation operation,
+ Object destroy(Object key, Object expectedOldValue, Operation operation,
EntryEventImpl clientEvent, Object callbackArg);
@@ -75,7 +73,7 @@ public interface ServerRegionDataAccess {
*
* @param event the entryEventImpl that represents the invalidate
*/
- public abstract void invalidate(EntryEventImpl event);
+ void invalidate(EntryEventImpl event);
/**
@@ -84,7 +82,7 @@ public interface ServerRegionDataAccess {
* @param eventId the event id for this clear
* @param callbackArg an optional callback arg to pass to any cache callbacks
*/
- public abstract void clear(EventID eventId, Object callbackArg);
+ void clear(EventID eventId, Object callbackArg);
/**
@@ -92,14 +90,14 @@ public interface ServerRegionDataAccess {
*
* @param key the entry key to do the containsKey on
*/
- public abstract boolean containsKey(Object key);
+ boolean containsKey(Object key);
/**
* Does a region containsKey on a server
*
* @param key the entry key to do the containsKey on
*/
- public abstract boolean containsValueForKey(Object key);
+ boolean containsValueForKey(Object key);
/**
@@ -107,23 +105,21 @@ public interface ServerRegionDataAccess {
*
* @param value the entry value to search for
*/
- public boolean containsValue(Object value);
+ boolean containsValue(Object value);
/**
* Does a region keySet on a server
*/
- public abstract Set keySet();
+ Set keySet();
- public abstract VersionedObjectList putAll(Map map, EventID eventId, boolean skipCallbacks,
- Object callbackArg);
+ VersionedObjectList putAll(Map map, EventID eventId, boolean skipCallbacks, Object callbackArg);
- public abstract VersionedObjectList removeAll(Collection<Object> keys, EventID eventId,
- Object callbackArg);
+ VersionedObjectList removeAll(Collection<Object> keys, EventID eventId, Object callbackArg);
- public abstract VersionedObjectList getAll(List keys, Object callback);
+ VersionedObjectList getAll(List keys, Object callback);
- public int size();
+ int size();
/**
* gets an entry from the server, does not invoke loaders
@@ -131,7 +127,7 @@ public interface ServerRegionDataAccess {
* @param key
* @return an {@link EntrySnapshot} for the given key
*/
- public Entry getEntry(Object key);
+ Entry getEntry(Object key);
// public boolean containsValue(Object value);
// public Set entries(boolean recursive) {
// public void invalidate(Object key) throws TimeoutException,
@@ -140,12 +136,12 @@ public interface ServerRegionDataAccess {
/**
* returns the name of the region to which this interface provides access
*/
- public String getRegionName();
+ String getRegionName();
/**
* returns the region to which this interface provides access. This may be null in an admin system
*/
- public Region getRegion();
+ Region getRegion();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorMembershipListener.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorMembershipListener.java
index a1815db..f1b34e4 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorMembershipListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorMembershipListener.java
@@ -29,11 +29,11 @@ import org.apache.geode.internal.admin.remote.DistributionLocatorId;
*/
public interface LocatorMembershipListener {
- public Object handleRequest(Object request);
+ Object handleRequest(Object request);
- public void setPort(int port);
+ void setPort(int port);
- public void setConfig(DistributionConfig config);
+ void setConfig(DistributionConfig config);
/**
* When the new locator is added to remote locator metadata, inform all other locators in remote
@@ -41,14 +41,14 @@ public interface LocatorMembershipListener {
*
* @param locator
*/
- public void locatorJoined(int distributedSystemId, DistributionLocatorId locator,
+ void locatorJoined(int distributedSystemId, DistributionLocatorId locator,
DistributionLocatorId sourceLocator);
- public Set<String> getRemoteLocatorInfo(int dsId);
+ Set<String> getRemoteLocatorInfo(int dsId);
- public ConcurrentMap<Integer, Set<DistributionLocatorId>> getAllLocatorsInfo();
+ ConcurrentMap<Integer, Set<DistributionLocatorId>> getAllLocatorsInfo();
- public ConcurrentMap<Integer, Set<String>> getAllServerLocatorsInfo();
+ ConcurrentMap<Integer, Set<String>> getAllServerLocatorsInfo();
- public void clearLocatorInfo();
+ void clearLocatorInfo();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/ConnectionManager.java b/geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/ConnectionManager.java
index 081c1d1..1dd57cb 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/ConnectionManager.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/client/internal/pooling/ConnectionManager.java
@@ -99,19 +99,19 @@ public interface ConnectionManager {
/**
* Test hook to find out current number of connections this manager has.
*/
- public int getConnectionCount();
+ int getConnectionCount();
void emergencyClose();
/**
* Used to active a thread local connection
*/
- public void activate(Connection conn);
+ void activate(Connection conn);
/**
* Used to passivate a thread local connection
*/
- public void passivate(Connection conn, boolean accessed);
+ void passivate(Connection conn, boolean accessed);
- public Connection getConnection(Connection conn);
+ Connection getConnection(Connection conn);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceFactory.java b/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceFactory.java
index 0241abb..10aef8b 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceFactory.java
@@ -47,12 +47,12 @@ public interface RebalanceFactory {
* used by this member will be rebalanced. Operation may queue as needed for resources in
* contention by other active rebalance operations.
*/
- public RebalanceOperation start();
+ RebalanceOperation start();
/**
* Simulates a rebalance of the GemFire controlled cache resources on this member. This operation
* will not make any actual changes. It will only produce a report of what the results would have
* been had this been a real rebalance operation.
*/
- public RebalanceOperation simulate();
+ RebalanceOperation simulate();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceOperation.java b/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceOperation.java
index 851ff55..afcac9c 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceOperation.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceOperation.java
@@ -31,12 +31,12 @@ public interface RebalanceOperation {
/**
* Returns true if this operation was cancelled before it completed.
*/
- public boolean isCancelled();
+ boolean isCancelled();
/**
* Returns true if this operation completed.
*/
- public boolean isDone();
+ boolean isDone();
/**
* Cancels this rebalance operation. The rebalance operation will find a safe point and then stop.
@@ -44,7 +44,7 @@ public interface RebalanceOperation {
* @return false if this operation could not be cancelled, typically because it has already
* completed; true otherwise
*/
- public boolean cancel();
+ boolean cancel();
/**
* Wait for this operation to complete and return the results.
@@ -53,7 +53,7 @@ public interface RebalanceOperation {
* @throws CancellationException if the operation was cancelled
* @throws InterruptedException if the wait was interrupted
*/
- public RebalanceResults getResults() throws CancellationException, InterruptedException;
+ RebalanceResults getResults() throws CancellationException, InterruptedException;
/**
* Wait for this operation to complete and return the results.
@@ -65,6 +65,6 @@ public interface RebalanceOperation {
* @throws TimeoutException if the wait timed out
* @throws InterruptedException if the wait was interrupted
*/
- public RebalanceResults getResults(long timeout, TimeUnit unit)
+ RebalanceResults getResults(long timeout, TimeUnit unit)
throws CancellationException, TimeoutException, InterruptedException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceResults.java b/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceResults.java
index fd267cf..e2e0134 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceResults.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/control/RebalanceResults.java
@@ -33,21 +33,21 @@ public interface RebalanceResults {
* @return a <code>Set</code> of detailed information about each partitioned region that was
* rebalanced
*/
- public Set<PartitionRebalanceInfo> getPartitionRebalanceDetails();
+ Set<PartitionRebalanceInfo> getPartitionRebalanceDetails();
/**
* Returns the total time, in milliseconds, that the rebalance operation took.
*
* @return the total time, in milliseconds, that the rebalance operation took
*/
- public long getTotalTime();
+ long getTotalTime();
/**
* Returns the total number of buckets created during the rebalance operation.
*
* @return the total number of buckets created during the rebalance operation
*/
- public int getTotalBucketCreatesCompleted();
+ int getTotalBucketCreatesCompleted();
/**
* Returns the total size, in bytes, of all of the buckets that were created as part of the
@@ -56,47 +56,47 @@ public interface RebalanceResults {
* @return the total size, in bytes, of all of the buckets that were created as part of the
* rebalance operation
*/
- public long getTotalBucketCreateBytes();
+ long getTotalBucketCreateBytes();
/**
* Returns the total time, in milliseconds, taken to create buckets.
*
* @return the total time, in milliseconds, taken to create buckets
*/
- public long getTotalBucketCreateTime();
+ long getTotalBucketCreateTime();
/**
* Returns the total number of buckets transferred.
*
* @return the total number of buckets transferred
*/
- public int getTotalBucketTransfersCompleted();
+ int getTotalBucketTransfersCompleted();
/**
* Returns the total size, in bytes, of buckets that were transferred.
*
* @return the total size, in bytes, of buckets that were transferred
*/
- public long getTotalBucketTransferBytes();
+ long getTotalBucketTransferBytes();
/**
* Returns the total amount of time, in milliseconds, it took to transfer buckets.
*
* @return the total amount of time, in milliseconds, it took to transfer buckets
*/
- public long getTotalBucketTransferTime();
+ long getTotalBucketTransferTime();
/**
* Returns the total number of primaries that were transferred.
*
* @return the total number of primaries that were transferred
*/
- public int getTotalPrimaryTransfersCompleted();
+ int getTotalPrimaryTransfersCompleted();
/**
* Returns the total time, in milliseconds, spent transferring primaries.
*
* @return the total time, in milliseconds, spent transferring primaries
*/
- public long getTotalPrimaryTransferTime();
+ long getTotalPrimaryTransferTime();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/control/ResourceManager.java b/geode-core/src/main/java/org/apache/geode/cache/control/ResourceManager.java
index a3a6898..54e90ec 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/control/ResourceManager.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/control/ResourceManager.java
@@ -48,7 +48,7 @@ public interface ResourceManager {
* @see ResourceManager#setCriticalHeapPercentage(float)
* @see ResourceManager#getCriticalHeapPercentage()
*/
- public static final float DEFAULT_CRITICAL_PERCENTAGE = 0.0f;
+ float DEFAULT_CRITICAL_PERCENTAGE = 0.0f;
/**
* The default percent of heap memory at which the VM should begin evicting data. Current value is
@@ -60,14 +60,14 @@ public interface ResourceManager {
* @see ResourceManager#setEvictionHeapPercentage(float)
* @see ResourceManager#getEvictionHeapPercentage()
*/
- public static final float DEFAULT_EVICTION_PERCENTAGE = 0.0f;
+ float DEFAULT_EVICTION_PERCENTAGE = 0.0f;
/**
* Creates a factory for defining and starting {@link RebalanceOperation RebalanceOperations}.
*
* @return a factory for defining and starting RebalanceOperations
*/
- public RebalanceFactory createRebalanceFactory();
+ RebalanceFactory createRebalanceFactory();
/**
* Returns a set of all active {@link RebalanceOperation RebalanceOperations} that were started
@@ -75,7 +75,7 @@ public interface ResourceManager {
*
* @return a set of all active RebalanceOperations started locally
*/
- public Set<RebalanceOperation> getRebalanceOperations();
+ Set<RebalanceOperation> getRebalanceOperations();
/**
* Set the percentage of heap at or above which the cache is considered in danger of becoming
@@ -128,7 +128,7 @@ public interface ResourceManager {
* @see #getEvictionHeapPercentage()
* @since GemFire 6.0
*/
- public void setCriticalHeapPercentage(float heapPercentage);
+ void setCriticalHeapPercentage(float heapPercentage);
/**
* Get the percentage of heap at or above which the cache is considered in danger of becoming
@@ -138,7 +138,7 @@ public interface ResourceManager {
* @see #setCriticalHeapPercentage(float)
* @since GemFire 6.0
*/
- public float getCriticalHeapPercentage();
+ float getCriticalHeapPercentage();
/**
* Set the percentage of off-heap at or above which the cache is considered in danger of becoming
@@ -169,7 +169,7 @@ public interface ResourceManager {
* @see #getEvictionOffHeapPercentage()
* @since Geode 1.0
*/
- public void setCriticalOffHeapPercentage(float offHeapPercentage);
+ void setCriticalOffHeapPercentage(float offHeapPercentage);
/**
* Get the percentage of off-heap at or above which the cache is considered in danger of becoming
@@ -179,7 +179,7 @@ public interface ResourceManager {
* @see #setCriticalOffHeapPercentage(float)
* @since Geode 1.0
*/
- public float getCriticalOffHeapPercentage();
+ float getCriticalOffHeapPercentage();
/**
* Set the percentage of heap at or above which the eviction should begin on Regions configured
@@ -203,7 +203,7 @@ public interface ResourceManager {
* @see #getCriticalHeapPercentage()
* @since GemFire 6.0
*/
- public void setEvictionHeapPercentage(float heapPercentage);
+ void setEvictionHeapPercentage(float heapPercentage);
/**
* Get the percentage of heap at or above which the eviction should begin on Regions configured
@@ -213,7 +213,7 @@ public interface ResourceManager {
* @see #setEvictionHeapPercentage(float)
* @since GemFire 6.0
*/
- public float getEvictionHeapPercentage();
+ float getEvictionHeapPercentage();
/**
* Set the percentage of off-heap at or above which the eviction should begin on Regions
@@ -233,7 +233,7 @@ public interface ResourceManager {
* @see #getCriticalOffHeapPercentage()
* @since Geode 1.0
*/
- public void setEvictionOffHeapPercentage(float offHeapPercentage);
+ void setEvictionOffHeapPercentage(float offHeapPercentage);
/**
* Get the percentage of off-heap at or above which the eviction should begin on Regions
@@ -243,5 +243,5 @@ public interface ResourceManager {
* @see #setEvictionOffHeapPercentage(float)
* @since Geode 1.0
*/
- public float getEvictionOffHeapPercentage();
+ float getEvictionOffHeapPercentage();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/execute/Execution.java b/geode-core/src/main/java/org/apache/geode/cache/execute/Execution.java
index b3efbcd..cec0bbc 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/execute/Execution.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/execute/Execution.java
@@ -51,7 +51,7 @@ public interface Execution<IN, OUT, AGG> {
* {@link FunctionService#onRegion(org.apache.geode.cache.Region)}
* @since GemFire 6.0
*/
- public Execution<IN, OUT, AGG> withFilter(Set<?> filter);
+ Execution<IN, OUT, AGG> withFilter(Set<?> filter);
/**
* Specifies the user data passed to the function when it is executed. The function can retrieve
@@ -63,7 +63,7 @@ public interface Execution<IN, OUT, AGG> {
* @since Geode 1.2
*
*/
- public Execution<IN, OUT, AGG> setArguments(IN args);
+ Execution<IN, OUT, AGG> setArguments(IN args);
/**
* Specifies the user data passed to the function when it is executed. The function can retrieve
@@ -76,7 +76,7 @@ public interface Execution<IN, OUT, AGG> {
* @deprecated use {@link #setArguments(Object)} instead
*
*/
- public Execution<IN, OUT, AGG> withArgs(IN args);
+ Execution<IN, OUT, AGG> withArgs(IN args);
/**
* Specifies the {@link ResultCollector} that will receive the results after the function has been
@@ -88,7 +88,7 @@ public interface Execution<IN, OUT, AGG> {
* @see ResultCollector
* @since GemFire 6.0
*/
- public Execution<IN, OUT, AGG> withCollector(ResultCollector<OUT, AGG> rc);
+ Execution<IN, OUT, AGG> withCollector(ResultCollector<OUT, AGG> rc);
/**
* Executes the function using its {@linkplain Function#getId() id}
@@ -104,7 +104,7 @@ public interface Execution<IN, OUT, AGG> {
*
* @since GemFire 6.0
*/
- public ResultCollector<OUT, AGG> execute(String functionId) throws FunctionException;
+ ResultCollector<OUT, AGG> execute(String functionId) throws FunctionException;
/**
* Executes the function instance provided.
@@ -121,5 +121,5 @@ public interface Execution<IN, OUT, AGG> {
*
* @since GemFire 6.0
*/
- public ResultCollector<OUT, AGG> execute(Function function) throws FunctionException;
+ ResultCollector<OUT, AGG> execute(Function function) throws FunctionException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/execute/FunctionContext.java b/geode-core/src/main/java/org/apache/geode/cache/execute/FunctionContext.java
index 733296d..791998f 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/execute/FunctionContext.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/execute/FunctionContext.java
@@ -43,7 +43,7 @@ public interface FunctionContext<T1> {
* @return the arguments or null if there are no arguments
* @since GemFire 6.0
*/
- public T1 getArguments();
+ T1 getArguments();
/**
* Returns the identifier of the function.
@@ -52,7 +52,7 @@ public interface FunctionContext<T1> {
* @see Function#getId()
* @since GemFire 6.0
*/
- public String getFunctionId();
+ String getFunctionId();
/**
* Returns the ResultSender which is used to add the ability for an execute method to send a
@@ -66,7 +66,7 @@ public interface FunctionContext<T1> {
* @since GemFire 6.0
*/
- public <T2> ResultSender<T2> getResultSender();
+ <T2> ResultSender<T2> getResultSender();
/**
* Returns a boolean to identify whether this is a re-execute. Returns true if it is a re-execute
@@ -77,9 +77,9 @@ public interface FunctionContext<T1> {
* @since GemFire 6.5
* @see Function#isHA()
*/
- public boolean isPossibleDuplicate();
+ boolean isPossibleDuplicate();
- public Cache getCache();
+ Cache getCache();
/**
* a convenience method to get the name of the member this function executes on. call this
@@ -87,7 +87,7 @@ public interface FunctionContext<T1> {
*
* @return member name or id if name is blank
*/
- public default String getMemberName() {
+ default String getMemberName() {
DistributedMember member = getCache().getDistributedSystem().getDistributedMember();
// if this member has name, use it, otherwise, use the id
diff --git a/geode-core/src/main/java/org/apache/geode/cache/execute/RegionFunctionContext.java b/geode-core/src/main/java/org/apache/geode/cache/execute/RegionFunctionContext.java
index 3a93379..810a920 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/execute/RegionFunctionContext.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/execute/RegionFunctionContext.java
@@ -49,7 +49,7 @@ public interface RegionFunctionContext extends FunctionContext {
* @return the objects that caused the function to be routed to this cluster member
* @since GemFire 6.0
*/
- public Set<?> getFilter();
+ Set<?> getFilter();
/**
* Returns the reference to the Region on which the function is executed
@@ -60,6 +60,6 @@ public interface RegionFunctionContext extends FunctionContext {
*
* @since GemFire 6.0
*/
- public <K, V> Region<K, V> getDataSet();
+ <K, V> Region<K, V> getDataSet();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/execute/ResultCollector.java b/geode-core/src/main/java/org/apache/geode/cache/execute/ResultCollector.java
index b896f0c..0700216 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/execute/ResultCollector.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/execute/ResultCollector.java
@@ -68,7 +68,7 @@ public interface ResultCollector<T, S> {
* @throws FunctionException if result retrieval fails
* @since GemFire 6.0
*/
- public S getResult() throws FunctionException;
+ S getResult() throws FunctionException;
/**
* Method used to pull results from the ResultCollector. It returns the result of function
@@ -83,7 +83,7 @@ public interface ResultCollector<T, S> {
* @since GemFire 6.0
*
*/
- public S getResult(long timeout, TimeUnit unit) throws FunctionException, InterruptedException;
+ S getResult(long timeout, TimeUnit unit) throws FunctionException, InterruptedException;
/**
* Method used to feed result to the ResultCollector. It adds a single function execution result
@@ -93,7 +93,7 @@ public interface ResultCollector<T, S> {
* @since GemFire 6.0
* @param memberID DistributedMember ID to which result belongs
*/
- public void addResult(DistributedMember memberID, T resultOfSingleExecution);
+ void addResult(DistributedMember memberID, T resultOfSingleExecution);
/**
* GemFire will invoke this method when function execution has completed and all results for the
@@ -106,7 +106,7 @@ public interface ResultCollector<T, S> {
*
* @see ResultSender#lastResult(Object)
*/
- public void endResults();
+ void endResults();
/**
* GemFire will invoke this method before re-executing function (in case of Function Execution
@@ -114,6 +114,6 @@ public interface ResultCollector<T, S> {
*
* @since GemFire 6.5
*/
- public void clearResults();
+ void clearResults();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/execute/ResultSender.java b/geode-core/src/main/java/org/apache/geode/cache/execute/ResultSender.java
index fec1f90..236f622 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/execute/ResultSender.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/execute/ResultSender.java
@@ -55,7 +55,7 @@ public interface ResultSender<T> {
*
* @param oneResult
*/
- public void sendResult(T oneResult);
+ void sendResult(T oneResult);
/**
* Sends a result back to the FunctionService calling thread and invokes
@@ -68,7 +68,7 @@ public interface ResultSender<T> {
*
* @see ResultCollector#endResults()
*/
- public void lastResult(T lastResult);
+ void lastResult(T lastResult);
/**
* Sends an Exception back to the FunctionService calling thread. sendException adds exception to
@@ -81,5 +81,5 @@ public interface ResultSender<T> {
* @see #lastResult(Object)
* @since GemFire 6.3
*/
- public void sendException(Throwable t);
+ void sendException(Throwable t);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionListener.java b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionListener.java
index 2c13aa5..fd4070b 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionListener.java
@@ -68,7 +68,7 @@ public interface PartitionListener {
* @param bucketId id of the bucket which became primary
* @since GemFire 6.5
*/
- public void afterPrimary(int bucketId);
+ void afterPrimary(int bucketId);
/**
* Callback invoked when any bucket in a partitioned region stops being primary
@@ -76,7 +76,7 @@ public interface PartitionListener {
* @param bucketId id of the bucket which stopped being primary
* @since Geode 1.1
*/
- public default void afterSecondary(int bucketId) {
+ default void afterSecondary(int bucketId) {
}
@@ -86,7 +86,7 @@ public interface PartitionListener {
* @param region handle of the region which is created
* @since GemFire 6.5
*/
- public void afterRegionCreate(Region<?, ?> region);
+ void afterRegionCreate(Region<?, ?> region);
/**
* Callback invoked after a bucket has been removed from a member (e.g. during rebalancing). This
@@ -96,7 +96,7 @@ public interface PartitionListener {
* @param keys keys in the bucket removed
* @since GemFire 6.6.1
*/
- public void afterBucketRemoved(int bucketId, Iterable<?> keys);
+ void afterBucketRemoved(int bucketId, Iterable<?> keys);
/**
* Callback invoked after a bucket has been created in a member (e.g. during rebalancing). This
@@ -108,6 +108,6 @@ public interface PartitionListener {
* @param keys keys in the bucket created
* @since GemFire 6.6.1
*/
- public void afterBucketCreated(int bucketId, Iterable<?> keys);
+ void afterBucketCreated(int bucketId, Iterable<?> keys);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionMemberInfo.java b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionMemberInfo.java
index c1ff0eb..448f9c1 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionMemberInfo.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionMemberInfo.java
@@ -31,7 +31,7 @@ public interface PartitionMemberInfo {
*
* @return the member for which these details pertain to
*/
- public DistributedMember getDistributedMember();
+ DistributedMember getDistributedMember();
/**
* Returns the {@link org.apache.geode.cache.PartitionAttributes#getLocalMaxMemory() max memory}
@@ -40,7 +40,7 @@ public interface PartitionMemberInfo {
*
* @return the max memory in bytes that the member was configured to provide for storage
*/
- public long getConfiguredMaxMemory(); // in bytes
+ long getConfiguredMaxMemory(); // in bytes
/**
* The total size in bytes of memory being used by the member for storage of actual data in the
@@ -48,7 +48,7 @@ public interface PartitionMemberInfo {
*
* @return size in bytes of memory being used by the member for storage
*/
- public long getSize(); // in bytes
+ long getSize(); // in bytes
/**
* Returns the number of buckets hosted within the member's partition space for the partitioned
@@ -56,7 +56,7 @@ public interface PartitionMemberInfo {
*
* @return the number of buckets hosted within the member
*/
- public int getBucketCount();
+ int getBucketCount();
/**
* The number of hosted buckets for which the member is hosting the primary copy. Other copies are
@@ -64,5 +64,5 @@ public interface PartitionMemberInfo {
*
* @return the number of hosted buckets for which the member is hosting the primary copy
*/
- public int getPrimaryCount();
+ int getPrimaryCount();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRebalanceInfo.java b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRebalanceInfo.java
index 447d7be..cf69ce8 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRebalanceInfo.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRebalanceInfo.java
@@ -30,7 +30,7 @@ public interface PartitionRebalanceInfo {
*
* @return the full name of partioned region that these details describe.
*/
- public String getRegionPath();
+ String getRegionPath();
/**
* Returns a <code>Set</code> of detailed information about each member that had rebalancable
@@ -39,7 +39,7 @@ public interface PartitionRebalanceInfo {
* @return a <code>Set</code> of detailed information about each member that had rebalancable
* resources at the time that the rebalance started
*/
- public Set<PartitionMemberInfo> getPartitionMemberDetailsBefore();
+ Set<PartitionMemberInfo> getPartitionMemberDetailsBefore();
/**
* Returns a <code>Set</code> of detailed information about each member that had rebalancable
@@ -48,21 +48,21 @@ public interface PartitionRebalanceInfo {
* @return a <code>Set</code> of detailed information about each member that had rebalancable
* resources at the time that the rebalance completed
*/
- public Set<PartitionMemberInfo> getPartitionMemberDetailsAfter();
+ Set<PartitionMemberInfo> getPartitionMemberDetailsAfter();
/**
* Returns the time, in milliseconds, that the rebalance operation took for this region.
*
* @return the time, in milliseconds, that the rebalance operation took for this region.
*/
- public long getTime();
+ long getTime();
/**
* Returns the number of buckets created during the rebalance operation.
*
* @return the number of buckets created during the rebalance operation
*/
- public int getBucketCreatesCompleted();
+ int getBucketCreatesCompleted();
/**
* Returns the size, in bytes, of all of the buckets that were created as part of the rebalance
@@ -71,21 +71,21 @@ public interface PartitionRebalanceInfo {
* @return the size, in bytes, of all of the buckets that were created as part of the rebalance
* operation
*/
- public long getBucketCreateBytes();
+ long getBucketCreateBytes();
/**
* Returns the time, in milliseconds, taken to create buckets for this region.
*
* @return the time, in milliseconds, taken to create buckets for this region
*/
- public long getBucketCreateTime();
+ long getBucketCreateTime();
/**
* Returns the number of buckets removed during the rebalance operation.
*
* @return the number of buckets removed during the rebalance operation
*/
- public int getBucketRemovesCompleted();
+ int getBucketRemovesCompleted();
/**
* Returns the size, in bytes, of all of the buckets that were removed as part of the rebalance
@@ -94,47 +94,47 @@ public interface PartitionRebalanceInfo {
* @return the size, in bytes, of all of the buckets that were removed as part of the rebalance
* operation
*/
- public long getBucketRemoveBytes();
+ long getBucketRemoveBytes();
/**
* Returns the time, in milliseconds, taken to remove buckets for this region.
*
* @return the time, in milliseconds, taken to remove buckets for this region
*/
- public long getBucketRemoveTime();
+ long getBucketRemoveTime();
/**
* Returns the number of buckets transferred for this region.
*
* @return the number of buckets transferred for this region
*/
- public int getBucketTransfersCompleted();
+ int getBucketTransfersCompleted();
/**
* Returns the size, in bytes, of buckets that were transferred for this region.
*
* @return the size, in bytes, of buckets that were transferred for this region
*/
- public long getBucketTransferBytes();
+ long getBucketTransferBytes();
/**
* Returns the amount of time, in milliseconds, it took to transfer buckets for this region.
*
* @return the amount of time, in milliseconds, it took to transfer buckets for this region
*/
- public long getBucketTransferTime();
+ long getBucketTransferTime();
/**
* Returns the number of primaries that were transferred for this region.
*
* @return the number of primaries that were transferred for this region
*/
- public int getPrimaryTransfersCompleted();
+ int getPrimaryTransfersCompleted();
/**
* Returns the time, in milliseconds, spent transferring primaries for this region.
*
* @return the time, in milliseconds, spent transferring primaries for this region
*/
- public long getPrimaryTransferTime();
+ long getPrimaryTransferTime();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRegionInfo.java b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRegionInfo.java
index 3e667b3..efbcd34 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRegionInfo.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/partition/PartitionRegionInfo.java
@@ -17,8 +17,6 @@ package org.apache.geode.cache.partition;
import java.util.Set;
-import org.apache.geode.cache.control.ResourceManager;
-
/**
* Information describing the data storage and distribution of a partitioned region. The
* {@link PartitionRegionHelper} is used to gather <code>PartitionRegionInfo</code>. Each instance
@@ -36,7 +34,7 @@ public interface PartitionRegionInfo {
*
* @return the full path of the partitioned region that this info describes
*/
- public String getRegionPath();
+ String getRegionPath();
/**
* Returns an immutable set of <code>PartitionMemberInfo</code> representing every member that is
@@ -44,7 +42,7 @@ public interface PartitionRegionInfo {
*
* @return set of member info configured for storage space
*/
- public Set<PartitionMemberInfo> getPartitionMemberInfo();
+ Set<PartitionMemberInfo> getPartitionMemberInfo();
/**
* Returns the {@link org.apache.geode.cache.PartitionAttributes#getTotalNumBuckets() configured
@@ -52,7 +50,7 @@ public interface PartitionRegionInfo {
*
* @return the configured number of buckets
*/
- public int getConfiguredBucketCount();
+ int getConfiguredBucketCount();
/**
* Returns the number of actual buckets that have been created to hold data for the partitioned
@@ -60,7 +58,7 @@ public interface PartitionRegionInfo {
*
* @return the current number of actual buckets that have been created
*/
- public int getCreatedBucketCount();
+ int getCreatedBucketCount();
/**
* Returns the number of created buckets that have fewer than the
@@ -70,7 +68,7 @@ public interface PartitionRegionInfo {
* @return the number of created buckets that have fewer than the configured redundant copies
* @see #getActualRedundantCopies()
*/
- public int getLowRedundancyBucketCount();
+ int getLowRedundancyBucketCount();
/**
* Returns the number of {@link org.apache.geode.cache.PartitionAttributes#getRedundantCopies()
@@ -78,7 +76,7 @@ public interface PartitionRegionInfo {
*
* @return the number of redundant copies the partitioned region was configured for
*/
- public int getConfiguredRedundantCopies();
+ int getConfiguredRedundantCopies();
/**
* Returns the lowest number of redundant copies for any bucket holding data for the partitioned
@@ -87,7 +85,7 @@ public interface PartitionRegionInfo {
*
* @return the lowest number of redundant copies for any bucket of the partitioned region.
*/
- public int getActualRedundantCopies();
+ int getActualRedundantCopies();
/**
* Returns the {@link org.apache.geode.cache.Region#getFullPath() full path} of the partitioned
@@ -98,5 +96,5 @@ public interface PartitionRegionInfo {
* @return the full path of the partitioned region that the region is colocated with or null if
* there is none.
*/
- public String getColocatedWith();
+ String getColocatedWith();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/persistence/PersistentID.java b/geode-core/src/main/java/org/apache/geode/cache/persistence/PersistentID.java
index 5219374..363983d 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/persistence/PersistentID.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/persistence/PersistentID.java
@@ -39,17 +39,17 @@ public interface PersistentID extends DataSerializable {
/**
* The host on which the persistent data was last residing
*/
- public abstract InetAddress getHost();
+ InetAddress getHost();
/**
* The directory which the persistent data was last residing in.
*/
- public abstract String getDirectory();
+ String getDirectory();
/**
* The unique identifier for the persistent data.
*
* @since GemFire 7.0
*/
- public abstract UUID getUUID();
+ UUID getUUID();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/Aggregator.java b/geode-core/src/main/java/org/apache/geode/cache/query/Aggregator.java
index df952c0..bd34037 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/Aggregator.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/Aggregator.java
@@ -27,16 +27,16 @@ public interface Aggregator {
*
* @param value
*/
- public void accumulate(Object value);
+ void accumulate(Object value);
/**
* Initialize the Aggregator
*/
- public void init();
+ void init();
/**
*
* @return Return the result scalar value
*/
- public Object terminate();
+ Object terminate();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributes.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributes.java
index 06cafb6..71523c5 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributes.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributes.java
@@ -32,7 +32,7 @@ public interface CqAttributes {
* @see CqListener
* @return CQListener[] array of CqListner
*/
- public CqListener[] getCqListeners();
+ CqListener[] getCqListeners();
/**
* Get the CqListener set with the CQ. Returns the CqListener associated with the CQ. If there are
@@ -41,6 +41,6 @@ public interface CqAttributes {
* @see CqListener
* @return CqListener Object, returns null if there is no CqListener.
*/
- public CqListener getCqListener();
+ CqListener getCqListener();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributesMutator.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributesMutator.java
index b966405..cfa5fda 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributesMutator.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqAttributesMutator.java
@@ -30,7 +30,7 @@ public interface CqAttributesMutator {
* @param aListener the user defined CQ listener to add to the CqQuery.
* @throws IllegalArgumentException if <code>aListener</code> is null
*/
- public void addCqListener(CqListener aListener);
+ void addCqListener(CqListener aListener);
/**
* Removes given CQ listener from the list of CQ listeners on this CqQuery. Does nothing if the
@@ -40,7 +40,7 @@ public interface CqAttributesMutator {
* @param aListener the CQ listener to remove from the CqQuery.
* @throws IllegalArgumentException if <code>aListener</code> is null
*/
- public void removeCqListener(CqListener aListener);
+ void removeCqListener(CqListener aListener);
/**
* Adds the given set CqListner on this CQ. If the CQ already has CqListeners, this removes those
@@ -49,6 +49,6 @@ public interface CqAttributesMutator {
* @param newListeners a possibly null or empty array of listeners to add to this CqQuery.
* @throws IllegalArgumentException if the <code>newListeners</code> array has a null element
*/
- public void initCqListeners(CqListener[] newListeners);
+ void initCqListeners(CqListener[] newListeners);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqEvent.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqEvent.java
index 88bd00c..f944a36 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqEvent.java
@@ -35,14 +35,14 @@ public interface CqEvent {
* @see CqQuery
* @return CqQuery object.
*/
- public CqQuery getCq();
+ CqQuery getCq();
/**
* Get the operation on the base region that triggered this event.
*
* @return Operation operation on the base region (on which CQ is created).
*/
- public Operation getBaseOperation();
+ Operation getBaseOperation();
/**
* Get the operation on the query results. Supported operations include update, create, destroy,
@@ -50,7 +50,7 @@ public interface CqEvent {
*
* @return Operation operation with respect to CQ.
*/
- public Operation getQueryOperation();
+ Operation getQueryOperation();
/**
* Get the key relating to the event. In case of REGION_CLEAR and REGION_INVALIDATE operation, the
@@ -58,7 +58,7 @@ public interface CqEvent {
*
* @return Object key.
*/
- public Object getKey();
+ Object getKey();
/**
* Get the new value of the modification. If there is no new value returns null, this will happen
@@ -67,7 +67,7 @@ public interface CqEvent {
*
* @return Object new/modified value.
*/
- public Object getNewValue();
+ Object getNewValue();
/**
* If an error occurred, return the Throwable, otherwise return null. If an error occurred, then
@@ -76,7 +76,7 @@ public interface CqEvent {
*
* @return Throwable exception related to error.
*/
- public Throwable getThrowable();
+ Throwable getThrowable();
/**
* Get the delta modification. If there is no delta, returns null. New value may still be
@@ -85,5 +85,5 @@ public interface CqEvent {
* @return byte[] delta value.
* @since GemFire 6.5
*/
- public byte[] getDeltaValue();
+ byte[] getDeltaValue();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqListener.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqListener.java
index a494ac0..71ee39d 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqListener.java
@@ -38,7 +38,7 @@ public interface CqListener extends CacheCallback {
*
* @see org.apache.geode.cache.query.CqQuery#executeWithInitialResults
*/
- public void onEvent(CqEvent aCqEvent);
+ void onEvent(CqEvent aCqEvent);
/**
* This method is invoked when there is an error during CQ processing. The error can appear while
@@ -46,5 +46,5 @@ public interface CqListener extends CacheCallback {
* the CQ query. This event does contain an error. The newValue may or may not be available, and
* will be null if not available.
*/
- public void onError(CqEvent aCqEvent);
+ void onError(CqEvent aCqEvent);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java
index 876a295..97603a5 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqQuery.java
@@ -31,28 +31,28 @@ public interface CqQuery {
*
* @return String the query string associated with CQ.
*/
- public String getQueryString();
+ String getQueryString();
/**
* Get the query object generated for this CQs query.
*
* @return Query query object for the query string.
*/
- public Query getQuery();
+ Query getQuery();
/**
* Get the name of the CQ.
*
* @return the name of the CQ.
*/
- public String getName();
+ String getName();
/**
* Get statistics information for this CQ.
*
* @return CqStatistics CQ statistics object.
*/
- public CqStatistics getStatistics();
+ CqStatistics getStatistics();
/**
* Get CqAttributes for this CQ.
@@ -60,7 +60,7 @@ public interface CqQuery {
* @see CqAttributes
* @return CqAttributes cqAttribute set with this CqQuery.
*/
- public CqAttributes getCqAttributes();
+ CqAttributes getCqAttributes();
/**
* Get CqAttributesMutator for this CQ.
@@ -68,7 +68,7 @@ public interface CqQuery {
* @see CqAttributesMutator
* @return CqAttributesMutator.
*/
- public CqAttributesMutator getCqAttributesMutator();
+ CqAttributesMutator getCqAttributesMutator();
/**
* Starts executing the CQ or, if the CQ is in a stopped state, resumes execution. Gets the
@@ -84,7 +84,7 @@ public interface CqQuery {
* @throws CqException if failed to execute and get initial results.
* @return SelectResults resultset obtained by executing the query.
*/
- public <E> CqResults<E> executeWithInitialResults()
+ <E> CqResults<E> executeWithInitialResults()
throws CqClosedException, RegionNotFoundException, CqException;
/**
@@ -97,7 +97,7 @@ public interface CqQuery {
* @throws IllegalStateException if the CqQuery is in the RUNNING state already.
* @throws CqException if failed to execute.
*/
- public void execute() throws CqClosedException, RegionNotFoundException, CqException;
+ void execute() throws CqClosedException, RegionNotFoundException, CqException;
/**
* Stops this CqQuery without releasing resources. Puts the CqQuery into the STOPPED state. Can be
@@ -106,7 +106,7 @@ public interface CqQuery {
* @throws IllegalStateException if the CqQuery is in the STOPPED state already.
* @throws CqClosedException if the CQ is CLOSED.
*/
- public void stop() throws CqClosedException, CqException;
+ void stop() throws CqClosedException, CqException;
/**
* Get the state of the CQ in CqState object form. CqState supports methods like isClosed(),
@@ -115,7 +115,7 @@ public interface CqQuery {
* @see CqState
* @return CqState state object of the CQ.
*/
- public CqState getState();
+ CqState getState();
/**
* Close the CQ and stop execution. Releases the resources associated with this CqQuery.
@@ -124,28 +124,28 @@ public interface CqQuery {
* getName().
* @throws CqException - if failure during cleanup of CQ resources.
*/
- public void close() throws CqClosedException, CqException;
+ void close() throws CqClosedException, CqException;
/**
* This allows to check if the CQ is in running or active.
*
* @return boolean true if running, false otherwise
*/
- public boolean isRunning();
+ boolean isRunning();
/**
* This allows to check if the CQ is in stopped.
*
* @return boolean true if stopped, false otherwise
*/
- public boolean isStopped();
+ boolean isStopped();
/**
* This allows to check if the CQ is closed.
*
* @return boolean true if closed, false otherwise
*/
- public boolean isClosed();
+ boolean isClosed();
/**
* This allows to check if the CQ is durable.
@@ -153,6 +153,6 @@ public interface CqQuery {
* @return boolean true if durable, false otherwise
* @since GemFire 5.5
*/
- public boolean isDurable();
+ boolean isDurable();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqServiceStatistics.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqServiceStatistics.java
index 7e5150b..1d33d59 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqServiceStatistics.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqServiceStatistics.java
@@ -28,28 +28,28 @@ public interface CqServiceStatistics {
*
* @return long number of CQs
*/
- public long numCqsActive();
+ long numCqsActive();
/**
* Get the total number of CQs created. This is a cumulative number.
*
* @return long number of CQs created.
*/
- public long numCqsCreated();
+ long numCqsCreated();
/**
* Get the total number of closed CQs. This is a cumulative number.
*
* @return long number of CQs closed.
*/
- public long numCqsClosed();
+ long numCqsClosed();
/**
* Get the number of stopped CQs currently.
*
* @return number of CQs stopped.
*/
- public long numCqsStopped();
+ long numCqsStopped();
/**
* Get number of CQs that are currently active or stopped. The CQs included in this number are
@@ -57,7 +57,7 @@ public interface CqServiceStatistics {
*
* @return long number of CQs on client.
*/
- public long numCqsOnClient();
+ long numCqsOnClient();
/**
* Get number of CQs on the given region. Active CQs and stopped CQs on this region are included
@@ -66,6 +66,6 @@ public interface CqServiceStatistics {
* @param regionFullPath
* @return long number of CQs on the region.
*/
- public long numCqsOnRegion(String regionFullPath);
+ long numCqsOnRegion(String regionFullPath);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqState.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqState.java
index d657ffb..07e85cc 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqState.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqState.java
@@ -27,26 +27,26 @@ public interface CqState {
/**
* Returns the state in string form.
*/
- public String toString();
+ String toString();
/**
* Returns true if the CQ is in Running state.
*/
- public boolean isRunning();
+ boolean isRunning();
/**
* Returns true if the CQ is in Stopped state.
*/
- public boolean isStopped();
+ boolean isStopped();
/**
* Returns true if the CQ is in Closed state.
*/
- public boolean isClosed();
+ boolean isClosed();
/**
* Returns true if the CQ is in Closing state.
*/
- public boolean isClosing();
+ boolean isClosing();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqStatistics.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqStatistics.java
index 719b10c..80f8963 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqStatistics.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqStatistics.java
@@ -28,27 +28,27 @@ public interface CqStatistics {
*
* @return long number of inserts.
*/
- public long numInserts();
+ long numInserts();
/**
* Get number of Delete events qualified by this CQ.
*
* @return long number of deletes.
*/
- public long numDeletes();
+ long numDeletes();
/**
* Get number of Update events qualified by this CQ.
*
* @return long number of updates.
*/
- public long numUpdates();
+ long numUpdates();
/**
* Get total of all the events qualified by this CQ.
*
* @return long total number of events.
*/
- public long numEvents();
+ long numEvents();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/CqStatusListener.java b/geode-core/src/main/java/org/apache/geode/cache/query/CqStatusListener.java
index 3af14b3..4443362 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/CqStatusListener.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/CqStatusListener.java
@@ -29,10 +29,10 @@ public interface CqStatusListener extends CqListener {
/**
* Called when the cq loses connection with all servers
*/
- public void onCqDisconnected();
+ void onCqDisconnected();
/**
* Called when the cq establishes a connection with a server
*/
- public void onCqConnected();
+ void onCqConnected();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/Index.java b/geode-core/src/main/java/org/apache/geode/cache/query/Index.java
index b52741f..ceb3634 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/Index.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/Index.java
@@ -15,7 +15,7 @@
package org.apache.geode.cache.query;
-import org.apache.geode.cache.*;
+import org.apache.geode.cache.Region;
/**
* An index that is built over the data stored in a GemFire {@link Region}.
@@ -48,21 +48,21 @@ public interface Index {
/**
* Returns the unique name of this index
*/
- public String getName();
+ String getName();
/**
* Get the index type
*
* @return the type of index
*/
- public IndexType getType();
+ IndexType getType();
/**
* The Region this index is on
*
* @return the Region for this index
*/
- public Region<?, ?> getRegion();
+ Region<?, ?> getRegion();
/**
* Get statistics information for this index.
@@ -72,47 +72,47 @@ public interface Index {
* On Map type indexes the stats are created at individual key level that can be viewed in
* VSD stats.
*/
- public IndexStatistics getStatistics();
+ IndexStatistics getStatistics();
/**
* Get the original fromClause for this index.
*/
- public String getFromClause();
+ String getFromClause();
/**
* Get whether index is valid to be used in queries.
*/
- public default boolean isValid() {
+ default boolean isValid() {
return false;
}
/**
* Get the canonicalized fromClause for this index.
*/
- public String getCanonicalizedFromClause();
+ String getCanonicalizedFromClause();
/**
* Get the original indexedExpression for this index.
*/
- public String getIndexedExpression();
+ String getIndexedExpression();
/**
* Get the canonicalized indexedExpression for this index.
*/
- public String getCanonicalizedIndexedExpression();
+ String getCanonicalizedIndexedExpression();
/**
* Get the original projectionAttributes for this expression.
*
* @return the projectionAttributes, or "*" if there were none specified at index creation.
*/
- public String getProjectionAttributes();
+ String getProjectionAttributes();
/**
* Get the canonicalized projectionAttributes for this expression.
*
* @return the projectionAttributes, or "*" if there were none specified at index creation.
*/
- public String getCanonicalizedProjectionAttributes();
+ String getCanonicalizedProjectionAttributes();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/IndexStatistics.java b/geode-core/src/main/java/org/apache/geode/cache/query/IndexStatistics.java
index 3669cc1..92eccde 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/IndexStatistics.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/IndexStatistics.java
@@ -25,47 +25,47 @@ public interface IndexStatistics {
/**
* Return the total number of times this index has been updated
*/
- public long getNumUpdates();
+ long getNumUpdates();
/**
* Returns the total amount of time (in nanoseconds) spent updating this index.
*/
- public long getTotalUpdateTime();
+ long getTotalUpdateTime();
/**
* Returns the total number of times this index has been accessed by a query.
*/
- public long getTotalUses();
+ long getTotalUses();
/**
* Returns the number of keys in this index.
*/
- public long getNumberOfKeys();
+ long getNumberOfKeys();
/**
* Returns the number of values in this index.
*/
- public long getNumberOfValues();
+ long getNumberOfValues();
/**
* Return the number of values for the specified key in this index.
*/
- public long getNumberOfValues(Object key);
+ long getNumberOfValues(Object key);
/**
* Return number of read locks taken on this index
*/
- public int getReadLockCount();
+ int getReadLockCount();
/**
* Returns the number of keys in this index at the highest level
*/
- public long getNumberOfMapIndexKeys();
+ long getNumberOfMapIndexKeys();
/**
* Returns the number of bucket indexes created in the Partitioned Region
*/
- public int getNumberOfBucketIndexes();
+ int getNumberOfBucketIndexes();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/Query.java b/geode-core/src/main/java/org/apache/geode/cache/query/Query.java
index 8d6cdcc..c5cab1e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/Query.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/Query.java
@@ -34,7 +34,7 @@ public interface Query {
*
* @return the original query string
*/
- public String getQueryString();
+ String getQueryString();
/**
@@ -78,8 +78,8 @@ public interface Query {
* @throws PartitionOfflineException If persistent data recovery is not complete for a partitioned
* region referred to in the query.
*/
- public Object execute() throws FunctionDomainException, TypeMismatchException,
- NameResolutionException, QueryInvocationTargetException;
+ Object execute() throws FunctionDomainException, TypeMismatchException, NameResolutionException,
+ QueryInvocationTargetException;
/**
* Executes this query with the given parameters and returns an object that represent its result.
@@ -125,7 +125,7 @@ public interface Query {
* region referred to in the query.
*
*/
- public Object execute(Object... params) throws FunctionDomainException, TypeMismatchException,
+ Object execute(Object... params) throws FunctionDomainException, TypeMismatchException,
NameResolutionException, QueryInvocationTargetException;
/**
@@ -184,7 +184,7 @@ public interface Query {
* @throws PartitionOfflineException If persistent data recovery is not complete for a partitioned
* region referred to in the query.
*/
- public Object execute(RegionFunctionContext context) throws FunctionDomainException,
+ Object execute(RegionFunctionContext context) throws FunctionDomainException,
TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
/**
@@ -244,9 +244,8 @@ public interface Query {
* @throws PartitionOfflineException If persistent data recovery is not complete for a partitioned
* region referred to in the query.
*/
- public Object execute(RegionFunctionContext context, Object[] params)
- throws FunctionDomainException, TypeMismatchException, NameResolutionException,
- QueryInvocationTargetException;
+ Object execute(RegionFunctionContext context, Object[] params) throws FunctionDomainException,
+ TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
/**
* Compiles this <code>Query</code> to achieve higher performance execution.
@@ -257,7 +256,7 @@ public interface Query {
* @deprecated as of 6.5
*/
@Deprecated
- public void compile() throws TypeMismatchException, NameResolutionException;
+ void compile() throws TypeMismatchException, NameResolutionException;
/**
* Return whether this query has been compiled into VM bytecodes.
@@ -266,11 +265,11 @@ public interface Query {
* @deprecated as of 6.5
*/
@Deprecated
- public boolean isCompiled();
+ boolean isCompiled();
/**
* Get statistics information for this query.
*/
- public QueryStatistics getStatistics();
+ QueryStatistics getStatistics();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/QueryService.java b/geode-core/src/main/java/org/apache/geode/cache/query/QueryService.java
index 7e49eb4..b9996f3 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/QueryService.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/QueryService.java
@@ -40,7 +40,7 @@ import org.apache.geode.cache.query.internal.Undefined;
public interface QueryService {
/** The undefined constant */
- public static final Object UNDEFINED = new Undefined();
+ Object UNDEFINED = new Undefined();
/**
* Constructs a new <code>Query</code> object.
@@ -50,7 +50,7 @@ public interface QueryService {
* @throws QueryInvalidException if the syntax of the queryString is invalid.
* @see Query
*/
- public Query newQuery(String queryString);
+ Query newQuery(String queryString);
/**
* Create a hash index that can be used when executing equal and not equal queries. Hash index is
@@ -83,7 +83,7 @@ public interface QueryService {
* {@link QueryService#createIndex(String, String, String)} instead.
*/
@Deprecated
- public Index createHashIndex(String indexName, String indexedExpression, String regionPath)
+ Index createHashIndex(String indexName, String indexedExpression, String regionPath)
throws IndexInvalidException, IndexNameConflictException, IndexExistsException,
RegionNotFoundException, UnsupportedOperationException;
@@ -104,7 +104,7 @@ public interface QueryService {
*
* @throws RegionNotFoundException if the region referred to in the fromClause doesn't exist
*/
- public void defineKeyIndex(String indexName, String indexedExpression, String regionPath)
+ void defineKeyIndex(String indexName, String indexedExpression, String regionPath)
throws RegionNotFoundException;
/**
@@ -131,7 +131,7 @@ public interface QueryService {
* {@link QueryService#defineIndex(String, String, String)} instead.
*/
@Deprecated
- public void defineHashIndex(String indexName, String indexedExpression, String regionPath)
+ void defineHashIndex(String indexName, String indexedExpression, String regionPath)
throws RegionNotFoundException;
@@ -162,7 +162,7 @@ public interface QueryService {
* {@link QueryService#defineIndex(String, String, String, String)} instead.
*/
@Deprecated
- public void defineHashIndex(String indexName, String indexedExpression, String regionPath,
+ void defineHashIndex(String indexName, String indexedExpression, String regionPath,
String imports) throws RegionNotFoundException;
/**
@@ -186,7 +186,7 @@ public interface QueryService {
* @throws RegionNotFoundException if the region referred to in the fromClause doesn't exist
*
*/
- public void defineIndex(String indexName, String indexedExpression, String regionPath)
+ void defineIndex(String indexName, String indexedExpression, String regionPath)
throws RegionNotFoundException;
/**
@@ -216,8 +216,8 @@ public interface QueryService {
* @throws UnsupportedOperationException If Index is being created on a region which overflows to
* disk
*/
- public void defineIndex(String indexName, String indexedExpression, String regionPath,
- String imports) throws RegionNotFoundException;
+ void defineIndex(String indexName, String indexedExpression, String regionPath, String imports)
+ throws RegionNotFoundException;
/**
* Create a hash index that can be used when executing equal and not equal queries. Hash index is
@@ -253,7 +253,7 @@ public interface QueryService {
* {@link QueryService#createIndex(String, String, String, String)} instead
*/
@Deprecated
- public Index createHashIndex(String indexName, String indexedExpression, String regionPath,
+ Index createHashIndex(String indexName, String indexedExpression, String regionPath,
String imports) throws IndexInvalidException, IndexNameConflictException,
IndexExistsException, RegionNotFoundException, UnsupportedOperationException;
@@ -295,7 +295,7 @@ public interface QueryService {
*
*/
@Deprecated
- public Index createIndex(String indexName, IndexType indexType, String indexedExpression,
+ Index createIndex(String indexName, IndexType indexType, String indexedExpression,
String fromClause) throws IndexInvalidException, IndexNameConflictException,
IndexExistsException, RegionNotFoundException, UnsupportedOperationException;
@@ -338,7 +338,7 @@ public interface QueryService {
* disk
*/
@Deprecated
- public Index createIndex(String indexName, IndexType indexType, String indexedExpression,
+ Index createIndex(String indexName, IndexType indexType, String indexedExpression,
String fromClause, String imports) throws IndexInvalidException, IndexNameConflictException,
IndexExistsException, RegionNotFoundException, UnsupportedOperationException;
@@ -370,7 +370,7 @@ public interface QueryService {
* support indexes.
*
*/
- public Index createIndex(String indexName, String indexedExpression, String regionPath)
+ Index createIndex(String indexName, String indexedExpression, String regionPath)
throws IndexInvalidException, IndexNameConflictException, IndexExistsException,
RegionNotFoundException, UnsupportedOperationException;
@@ -404,9 +404,9 @@ public interface QueryService {
* @throws UnsupportedOperationException If Index is being created on a region which overflows to
* disk
*/
- public Index createIndex(String indexName, String indexedExpression, String regionPath,
- String imports) throws IndexInvalidException, IndexNameConflictException,
- IndexExistsException, RegionNotFoundException, UnsupportedOperationException;
+ Index createIndex(String indexName, String indexedExpression, String regionPath, String imports)
+ throws IndexInvalidException, IndexNameConflictException, IndexExistsException,
+ RegionNotFoundException, UnsupportedOperationException;
/**
* Create a key index that can be used when executing queries. The key index expression indicates
@@ -433,7 +433,7 @@ public interface QueryService {
* @throws UnsupportedOperationException If Index is being created on a region which overflows to
* disk
*/
- public Index createKeyIndex(String indexName, String indexedExpression, String regionPath)
+ Index createKeyIndex(String indexName, String indexedExpression, String regionPath)
throws IndexInvalidException, IndexNameConflictException, IndexExistsException,
RegionNotFoundException, UnsupportedOperationException;
@@ -444,12 +444,12 @@ public interface QueryService {
* @throws MultiIndexCreationException which consists a map of failed indexNames and the
* Exceptions.
*/
- public List<Index> createDefinedIndexes() throws MultiIndexCreationException;
+ List<Index> createDefinedIndexes() throws MultiIndexCreationException;
/**
* Clears all the indexes that were defined using {@link #defineIndex(String, String, String)}
*/
- public boolean clearDefinedIndexes();
+ boolean clearDefinedIndexes();
/**
* Get the Index from the specified Region with the specified name.
@@ -457,14 +457,14 @@ public interface QueryService {
* @param region the Region for the requested index
* @return the index of the region with this name, or null if there isn't one
*/
- public Index getIndex(Region<?, ?> region, String indexName);
+ Index getIndex(Region<?, ?> region, String indexName);
/**
* Get a collection of all the indexes in the Cache.
*
* @return the collection of all indexes in this Cache
*/
- public Collection<Index> getIndexes();
+ Collection<Index> getIndexes();
/**
* Get a collection of all the indexes on the specified Region
@@ -472,7 +472,7 @@ public interface QueryService {
* @param region the region for the requested indexes
* @return the collection of indexes on the specified region
*/
- public Collection<Index> getIndexes(Region<?, ?> region);
+ Collection<Index> getIndexes(Region<?, ?> region);
/**
*
@@ -486,26 +486,26 @@ public interface QueryService {
* @return the collection of indexes for the specified region and type
*/
@Deprecated
- public Collection<Index> getIndexes(Region<?, ?> region, IndexType indexType);
+ Collection<Index> getIndexes(Region<?, ?> region, IndexType indexType);
/**
* Remove the specified index.
*
* @param index the Index to remove
*/
- public void removeIndex(Index index);
+ void removeIndex(Index index);
/**
* Remove all the indexes from this cache.
*/
- public void removeIndexes();
+ void removeIndexes();
/**
* Remove all the indexes on the specified Region
*
* @param region the Region to remove all indexes from
*/
- public void removeIndexes(Region<?, ?> region);
+ void removeIndexes(Region<?, ?> region);
// CQ Service related APIs.
@@ -527,8 +527,7 @@ public interface QueryService {
* supported, and it must be a region path. Bind parameters in the query are not yet
* supported.
*/
- public CqQuery newCq(String queryString, CqAttributes cqAttr)
- throws QueryInvalidException, CqException;
+ CqQuery newCq(String queryString, CqAttributes cqAttr) throws QueryInvalidException, CqException;
/**
* Constructs a new continuous query, represented by an instance of CqQuery. The CqQuery is not
@@ -548,7 +547,7 @@ public interface QueryService {
* supported, and it must be a region path. Bind parameters in the query are not yet
* supported.
*/
- public CqQuery newCq(String queryString, CqAttributes cqAttr, boolean isDurable)
+ CqQuery newCq(String queryString, CqAttributes cqAttr, boolean isDurable)
throws QueryInvalidException, CqException;
/**
@@ -572,7 +571,7 @@ public interface QueryService {
* supported.
*
*/
- public CqQuery newCq(String name, String queryString, CqAttributes cqAttr)
+ CqQuery newCq(String name, String queryString, CqAttributes cqAttr)
throws QueryInvalidException, CqExistsException, CqException;
@@ -598,7 +597,7 @@ public interface QueryService {
* supported.
*
*/
- public CqQuery newCq(String name, String queryString, CqAttributes cqAttr, boolean isDurable)
+ CqQuery newCq(String name, String queryString, CqAttributes cqAttr, boolean isDurable)
throws QueryInvalidException, CqExistsException, CqException;
/**
@@ -608,7 +607,7 @@ public interface QueryService {
*
* @since GemFire 5.5
*/
- public void closeCqs();
+ void closeCqs();
/**
* Retrieve all registered Continuous Queries. This is a collection of CqQuery objects.
@@ -616,7 +615,7 @@ public interface QueryService {
* @since GemFire 5.5
* @return CqQuery[] list of registered CQs, null if there are no CQs.
*/
- public CqQuery[] getCqs();
+ CqQuery[] getCqs();
/**
* Retrieves all the registered Continuous Queries for a given region. This is a collection of
@@ -626,7 +625,7 @@ public interface QueryService {
* @return CqQuery[] list of registered CQs on the specified region, null if there are no CQs.
* @exception CqException if the region does not exist.
*/
- public CqQuery[] getCqs(String regionName) throws CqException;
+ CqQuery[] getCqs(String regionName) throws CqException;
/**
* Retrieves the Continuous Query specified by the name.
@@ -635,7 +634,7 @@ public interface QueryService {
* @param cqName - String, name of the CQ
* @return CqQuery object, null if no CqQuery object is found.
*/
- public CqQuery getCq(String cqName);
+ CqQuery getCq(String cqName);
/**
* Starts execution of all the registered continuous queries for this client. This is
@@ -646,7 +645,7 @@ public interface QueryService {
* @since GemFire 5.5
* @throws CqException if failure to execute CQ.
*/
- public void executeCqs() throws CqException;
+ void executeCqs() throws CqException;
/**
* Stops execution of all the continuous queries for this client to become inactive. This is
@@ -657,7 +656,7 @@ public interface QueryService {
* @since GemFire 5.5
* @throws CqException if failure to execute CQ.
*/
- public void stopCqs() throws CqException;
+ void stopCqs() throws CqException;
/**
* Starts execution of all the continuous queries registered on the specified region for this
@@ -668,7 +667,7 @@ public interface QueryService {
* @since GemFire 5.5
* @throws CqException if failure to stop CQs.
*/
- public void executeCqs(String regionName) throws CqException;
+ void executeCqs(String regionName) throws CqException;
/**
* Stops execution of all the continuous queries registered on the specified region for this
@@ -680,7 +679,7 @@ public interface QueryService {
* @since GemFire 5.5
* @throws CqException if failure to execute CQs.
*/
- public void stopCqs(String regionName) throws CqException;
+ void stopCqs(String regionName) throws CqException;
/**
* Retrieves all the durable CQs registered by the client calling this method.
@@ -688,7 +687,7 @@ public interface QueryService {
* @since GemFire 7.0
* @return List of names of registered durable CQs, empty list if no durable cqs.
*/
- public List<String> getAllDurableCqsFromServer() throws CqException;
+ List<String> getAllDurableCqsFromServer() throws CqException;
/**
* Returns CqServiceStatistics object, which provides helper methods to get CQ service related
@@ -703,6 +702,6 @@ public interface QueryService {
* @return CqServiceStatistics
*
*/
- public CqServiceStatistics getCqStatistics();
+ CqServiceStatistics getCqStatistics();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/QueryStatistics.java b/geode-core/src/main/java/org/apache/geode/cache/query/QueryStatistics.java
index c5c2ed2..a6546d0 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/QueryStatistics.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/QueryStatistics.java
@@ -24,11 +24,11 @@ public interface QueryStatistics {
/**
* Returns the total number of times the query has been executed.
*/
- public long getNumExecutions();
+ long getNumExecutions();
/**
* Returns the total amount of time (in nanoseconds) spent executing the query.
*/
- public long getTotalExecutionTime();
+ long getTotalExecutionTime();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/SelectResults.java b/geode-core/src/main/java/org/apache/geode/cache/query/SelectResults.java
index a32d823..71368f8 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/SelectResults.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/SelectResults.java
@@ -15,9 +15,12 @@
package org.apache.geode.cache.query;
-import java.util.*;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
-import org.apache.geode.cache.query.types.*;
+import org.apache.geode.cache.query.types.CollectionType;
+import org.apache.geode.cache.query.types.ObjectType;
/**
* Contains the results of a {@linkplain org.apache.geode.cache.query.Query#execute() executing} a
@@ -69,7 +72,7 @@ public interface SelectResults<E> extends Collection<E> {
*
* @return true if this collection is modifiable, false if not.
*/
- public boolean isModifiable();
+ boolean isModifiable();
/**
* Return the number of times element occurs in this collection, that is the number of duplicates
@@ -80,7 +83,7 @@ public interface SelectResults<E> extends Collection<E> {
* @return the number of occurrances of element
* @since GemFire 5.1
*/
- public int occurrences(E element);
+ int occurrences(E element);
/**
* Returns this <code>SelectResults</code> as a <code>java.util.Set</code>. If this collection is
@@ -89,7 +92,7 @@ public interface SelectResults<E> extends Collection<E> {
*
* @return Is this collection as a <code>java.util.Set</code>?
*/
- public Set<E> asSet();
+ Set<E> asSet();
/**
* Returns this <code>SelectedResults</code> as a <code>java.util.List</code>. If this collection
@@ -98,14 +101,14 @@ public interface SelectResults<E> extends Collection<E> {
*
* @return this collection as a java.util.List
*/
- public List<E> asList();
+ List<E> asList();
/**
* Return the ObjectType for the type of collection this represents.
*
* @return the CollectionType for the type of collection this represents
*/
- public CollectionType getCollectionType();
+ CollectionType getCollectionType();
/**
* Specify a new elementType, overriding any existing known elementType. This modifies the
@@ -114,6 +117,6 @@ public interface SelectResults<E> extends Collection<E> {
*
* @param elementType the new elementType
*/
- public void setElementType(ObjectType elementType);
+ void setElementType(ObjectType elementType);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/Struct.java b/geode-core/src/main/java/org/apache/geode/cache/query/Struct.java
index d3836af..75b1502 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/Struct.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/Struct.java
@@ -37,17 +37,17 @@ public interface Struct {
*
* @see StructType#getFieldIndex
*/
- public Object get(String fieldName);
+ Object get(String fieldName);
/**
* Get the values in this struct
*
* @return the array of values
*/
- public Object[] getFieldValues();
+ Object[] getFieldValues();
/**
* Returns the <code>StructType</code> that describes the fields of this <code>Struct</code>.
*/
- public StructType getStructType();
+ StructType getStructType();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/Filter.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/Filter.java
index fdcd571..4cac6f7 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/Filter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/Filter.java
@@ -14,10 +14,12 @@
*/
package org.apache.geode.cache.query.internal;
-import java.util.List;
-
-import org.apache.geode.cache.query.*;
-import org.apache.geode.internal.i18n.LocalizedStrings;
+import org.apache.geode.cache.query.AmbiguousNameException;
+import org.apache.geode.cache.query.FunctionDomainException;
+import org.apache.geode.cache.query.NameResolutionException;
+import org.apache.geode.cache.query.QueryInvocationTargetException;
+import org.apache.geode.cache.query.SelectResults;
+import org.apache.geode.cache.query.TypeMismatchException;
/**
* Class Description
@@ -31,7 +33,7 @@ public interface Filter {
*
* @return SelectResults
*/
- public SelectResults filterEvaluate(ExecutionContext context, SelectResults iterationLimit)
+ SelectResults filterEvaluate(ExecutionContext context, SelectResults iterationLimit)
throws FunctionDomainException, TypeMismatchException, NameResolutionException,
QueryInvocationTargetException;
@@ -86,7 +88,7 @@ public interface Filter {
* @throws NameResolutionException
* @throws QueryInvocationTargetException
*/
- public SelectResults filterEvaluate(ExecutionContext context, SelectResults iterationLimit,
+ SelectResults filterEvaluate(ExecutionContext context, SelectResults iterationLimit,
boolean completeExpansionNeeded, CompiledValue iterOperands, RuntimeIterator[] indpndntItrs,
boolean isIntersection, boolean conditioningNeeded, boolean evaluateProjection)
throws FunctionDomainException, TypeMismatchException, NameResolutionException,
@@ -106,11 +108,11 @@ public interface Filter {
* @throws NameResolutionException
* @throws QueryInvocationTargetException
*/
- public SelectResults auxFilterEvaluate(ExecutionContext context,
- SelectResults intermediateResults) throws FunctionDomainException, TypeMismatchException,
- NameResolutionException, QueryInvocationTargetException;
+ SelectResults auxFilterEvaluate(ExecutionContext context, SelectResults intermediateResults)
+ throws FunctionDomainException, TypeMismatchException, NameResolutionException,
+ QueryInvocationTargetException;
- public int getSizeEstimate(ExecutionContext context) throws FunctionDomainException,
+ int getSizeEstimate(ExecutionContext context) throws FunctionDomainException,
TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
/**
@@ -122,7 +124,7 @@ public interface Filter {
* @throws NameResolutionException
* @throws QueryInvocationTargetException
*/
- public boolean isProjectionEvaluationAPossibility(ExecutionContext context)
+ boolean isProjectionEvaluationAPossibility(ExecutionContext context)
throws FunctionDomainException, TypeMismatchException, NameResolutionException,
QueryInvocationTargetException;
@@ -137,8 +139,8 @@ public interface Filter {
* @throws TypeMismatchException
* @throws NameResolutionException
*/
- public boolean isConditioningNeededForIndex(RuntimeIterator independentIter,
- ExecutionContext context, boolean completeExpnsNeeded)
+ boolean isConditioningNeededForIndex(RuntimeIterator independentIter, ExecutionContext context,
+ boolean completeExpnsNeeded)
throws AmbiguousNameException, TypeMismatchException, NameResolutionException;
/**
@@ -156,7 +158,7 @@ public interface Filter {
throws FunctionDomainException, TypeMismatchException, NameResolutionException,
QueryInvocationTargetException;
- public int getOperator();
+ int getOperator();
/**
* This method returns the boolean indicating whether limit can be applied at index level. It
@@ -166,11 +168,10 @@ public interface Filter {
*
* @return true if limit can be applied at index level
*/
- public boolean isLimitApplicableAtIndexLevel(ExecutionContext context)
- throws FunctionDomainException, TypeMismatchException, NameResolutionException,
- QueryInvocationTargetException;
+ boolean isLimitApplicableAtIndexLevel(ExecutionContext context) throws FunctionDomainException,
+ TypeMismatchException, NameResolutionException, QueryInvocationTargetException;
- public boolean isOrderByApplicableAtIndexLevel(ExecutionContext context,
+ boolean isOrderByApplicableAtIndexLevel(ExecutionContext context,
String canonicalizedOrderByClause) throws FunctionDomainException, TypeMismatchException,
NameResolutionException, QueryInvocationTargetException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/HashingStrategy.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/HashingStrategy.java
index 0b5574e..bf4afeb 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/HashingStrategy.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/HashingStrategy.java
@@ -35,7 +35,7 @@ public interface HashingStrategy extends Serializable {
* @param o object for which the hash-code is to be computed
* @return the hashCode
*/
- public int hashCode(Object o);
+ int hashCode(Object o);
/**
* Compares o1 and o2 for equality. Strategy implementors may use the objects' own equals()
@@ -45,5 +45,5 @@ public interface HashingStrategy extends Serializable {
* @param o2 an <code>Object</code> value
* @return true if the objects are equal according to this strategy.
*/
- public boolean equals(Object o1, Object o2);
+ boolean equals(Object o1, Object o2);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/Negatable.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/Negatable.java
index c7301c7..e669d4e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/Negatable.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/Negatable.java
@@ -18,5 +18,5 @@ package org.apache.geode.cache.query.internal;
* Marker interface to mark CompiledValue classes that know how to negate themselves.
*/
public interface Negatable {
- public void negate();
+ void negate();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/QueryExecutor.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/QueryExecutor.java
index bee4884..8042e8e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/QueryExecutor.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/QueryExecutor.java
@@ -28,9 +28,9 @@ import org.apache.geode.cache.query.TypeMismatchException;
*/
public interface QueryExecutor {
// TODO Yogesh , fix this signature
- public Object executeQuery(DefaultQuery query, Object[] parameters, Set buckets)
+ Object executeQuery(DefaultQuery query, Object[] parameters, Set buckets)
throws FunctionDomainException, TypeMismatchException, NameResolutionException,
QueryInvocationTargetException;
- public String getName();
+ String getName();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/StructFields.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/StructFields.java
index bee930e..18cef0e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/StructFields.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/StructFields.java
@@ -31,13 +31,13 @@ import org.apache.geode.cache.query.types.CollectionType;
*/
public interface StructFields {
- public boolean addFieldValues(Object[] fieldValues);
+ boolean addFieldValues(Object[] fieldValues);
- public boolean removeFieldValues(Object[] fieldValues);
+ boolean removeFieldValues(Object[] fieldValues);
- public Iterator fieldValuesIterator();
+ Iterator fieldValuesIterator();
- public CollectionType getCollectionType();
+ CollectionType getCollectionType();
- public boolean containsFieldValues(Object[] fieldValues);
+ boolean containsFieldValues(Object[] fieldValues);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ClientCQ.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ClientCQ.java
index 8ade3ba..458dbed 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ClientCQ.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ClientCQ.java
@@ -18,7 +18,6 @@ import org.apache.geode.cache.client.internal.Connection;
import org.apache.geode.cache.client.internal.ProxyCache;
import org.apache.geode.cache.query.CqClosedException;
import org.apache.geode.cache.query.CqException;
-import org.apache.geode.cache.query.CqQuery;
public interface ClientCQ extends InternalCqQuery {
@@ -29,10 +28,10 @@ public interface ClientCQ extends InternalCqQuery {
* @param sendRequestToServer true to send the request to server.
* @throws CqException
*/
- public abstract void close(boolean sendRequestToServer) throws CqClosedException, CqException;
+ void close(boolean sendRequestToServer) throws CqClosedException, CqException;
- public abstract void setProxyCache(ProxyCache proxyCache);
+ void setProxyCache(ProxyCache proxyCache);
- public abstract void createOn(Connection recoveredConnection, boolean isDurable);
+ void createOn(Connection recoveredConnection, boolean isDurable);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/CqService.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/CqService.java
index cebefd8..c4d1e70 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/CqService.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/CqService.java
@@ -61,71 +61,68 @@ public interface CqService {
* parameters in the query are not supported for the initial release.
*
*/
- public abstract ClientCQ newCq(String cqName, String queryString, CqAttributes cqAttributes,
- InternalPool pool, boolean isDurable)
- throws QueryInvalidException, CqExistsException, CqException;
+ ClientCQ newCq(String cqName, String queryString, CqAttributes cqAttributes, InternalPool pool,
+ boolean isDurable) throws QueryInvalidException, CqExistsException, CqException;
/**
* Retrieve a cq by client cq name from server
*
* @return the CqQuery or null if not found
*/
- public abstract CqQuery getClientCqFromServer(ClientProxyMembershipID clientProxyId,
- String clientCqName);
+ CqQuery getClientCqFromServer(ClientProxyMembershipID clientProxyId, String clientCqName);
/**
* Retrieve a CqQuery by name.
*
* @return the CqQuery or null if not found
*/
- public abstract InternalCqQuery getCq(String cqName);
+ InternalCqQuery getCq(String cqName);
/**
* Retrieve all registered CQs
*/
- public abstract Collection<? extends InternalCqQuery> getAllCqs();
+ Collection<? extends InternalCqQuery> getAllCqs();
/**
* Retruns all the cqs on a given region.
*
*/
- public abstract Collection<? extends InternalCqQuery> getAllCqs(String regionName)
- throws CqException;
+ Collection<? extends InternalCqQuery> getAllCqs(String regionName) throws CqException;
/**
* Executes all the cqs on this client.
*/
- public abstract void executeAllClientCqs() throws CqException;
+ void executeAllClientCqs() throws CqException;
/**
* Executes all the cqs on a given region.
*/
- public abstract void executeAllRegionCqs(String regionName) throws CqException;
+ void executeAllRegionCqs(String regionName) throws CqException;
/**
* Executes all the given cqs.
*/
- public abstract void executeCqs(Collection<? extends InternalCqQuery> cqs) throws CqException;
+ void executeCqs(Collection<? extends InternalCqQuery> cqs) throws CqException;
/**
* Stops all the cqs on a given region.
*/
- public abstract void stopAllClientCqs() throws CqException;
+ void stopAllClientCqs() throws CqException;
/**
* Stops all the cqs on a given region.
*/
- public abstract void stopAllRegionCqs(String regionName) throws CqException;
+ void stopAllRegionCqs(String regionName) throws CqException;
/**
* Stops all the specified cqs.
*/
- public abstract void stopCqs(Collection<? extends InternalCqQuery> cqs) throws CqException;
+ void stopCqs(Collection<? extends InternalCqQuery> cqs) throws CqException;
/**
* Closes all the cqs on a given region.
*/
- public abstract void closeCqs(String regionName) throws CqException;
+ void closeCqs(String regionName) throws CqException;
/**
* Called directly on server side.
@@ -134,20 +131,19 @@ public interface CqService {
* @param clientProxyId
* @throws CqException
*/
- public abstract void closeCq(String cqName, ClientProxyMembershipID clientProxyId)
- throws CqException;
+ void closeCq(String cqName, ClientProxyMembershipID clientProxyId) throws CqException;
- public abstract void closeAllCqs(boolean clientInitiated);
+ void closeAllCqs(boolean clientInitiated);
- public abstract void closeAllCqs(boolean clientInitiated,
- Collection<? extends InternalCqQuery> cqs, boolean keepAlive);
+ void closeAllCqs(boolean clientInitiated, Collection<? extends InternalCqQuery> cqs,
+ boolean keepAlive);
/**
* Get statistics information for all CQs
*
* @return the CqServiceStatistics
*/
- public abstract CqServiceStatistics getCqStatistics();
+ CqServiceStatistics getCqStatistics();
/**
* Server side method.
@@ -155,7 +151,7 @@ public interface CqService {
* @param clientProxyId
* @throws CqException
*/
- public abstract void closeClientCqs(ClientProxyMembershipID clientProxyId) throws CqException;
+ void closeClientCqs(ClientProxyMembershipID clientProxyId) throws CqException;
/**
* Returns all the CQs registered by the client.
@@ -163,7 +159,7 @@ public interface CqService {
* @param clientProxyId
* @return CQs registered by the client.
*/
- public abstract List<ServerCQ> getAllClientCqs(ClientProxyMembershipID clientProxyId);
+ List<ServerCQ> getAllClientCqs(ClientProxyMembershipID clientProxyId);
/**
* Returns all the durable client CQs registered by the client.
@@ -171,8 +167,7 @@ public interface CqService {
* @param clientProxyId
* @return CQs registered by the client.
*/
- public abstract List<String> getAllDurableClientCqs(ClientProxyMembershipID clientProxyId)
- throws CqException;
+ List<String> getAllDurableClientCqs(ClientProxyMembershipID clientProxyId) throws CqException;
/**
* Invokes the CqListeners for the given CQs.
@@ -182,30 +177,30 @@ public interface CqService {
* @param key
* @param value
*/
- public abstract void dispatchCqListeners(HashMap<String, Integer> cqs, int messageType,
- Object key, Object value, byte[] delta, QueueManager qManager, EventID eventId);
+ void dispatchCqListeners(HashMap<String, Integer> cqs, int messageType, Object key, Object value,
+ byte[] delta, QueueManager qManager, EventID eventId);
- public abstract void processEvents(CacheEvent event, Profile localProfile, Profile[] profiles,
+ void processEvents(CacheEvent event, Profile localProfile, Profile[] profiles,
FilterRoutingInfo frInfo) throws CqException;
- public UserAttributes getUserAttributes(String cqName);
+ UserAttributes getUserAttributes(String cqName);
/**
* Closes the CqService.
*/
- public void close();
+ void close();
/**
* Returns true if the CQ service has not been closed yet.
*/
- public boolean isRunning();
+ boolean isRunning();
- public void start();
+ void start();
/**
* @return Returns the serverCqName.
*/
- public String constructServerCqName(String cqName, ClientProxyMembershipID clientProxyId);
+ String constructServerCqName(String cqName, ClientProxyMembershipID clientProxyId);
/**
* Called directly on server side.
@@ -214,7 +209,7 @@ public interface CqService {
* @param clientId
* @throws CqException
*/
- public void stopCq(String cqName, ClientProxyMembershipID clientId) throws CqException;
+ void stopCq(String cqName, ClientProxyMembershipID clientId) throws CqException;
/**
* Called directly on the server side.
@@ -222,11 +217,11 @@ public interface CqService {
* @param cqState new state
* @param cQuery
*/
- public void resumeCQ(int cqState, ServerCQ cQuery);
+ void resumeCQ(int cqState, ServerCQ cQuery);
- public void cqsDisconnected(Pool pool);
+ void cqsDisconnected(Pool pool);
- public void cqsConnected(Pool pool);
+ void cqsConnected(Pool pool);
/**
* Executes the given CqQuery, if the CqQuery for that name is not there it registers the one and
@@ -244,7 +239,7 @@ public interface CqService {
* @throws IllegalStateException if this is called at client side.
* @throws CqException
*/
- public ServerCQ executeCq(String cqName, String queryString, int cqState,
+ ServerCQ executeCq(String cqName, String queryString, int cqState,
ClientProxyMembershipID clientProxyId, CacheClientNotifier ccn, boolean isDurable,
boolean manageEmptyRegions, int regionDataPolicy, Map emptyRegionsMap)
throws CqException, RegionNotFoundException, CqClosedException;
@@ -255,7 +250,7 @@ public interface CqService {
* @param clientProxyId
* @throws CqException
*/
- public void closeNonDurableClientCqs(ClientProxyMembershipID clientProxyId) throws CqException;
+ void closeNonDurableClientCqs(ClientProxyMembershipID clientProxyId) throws CqException;
- public abstract List<String> getAllDurableCqsFromServer(InternalPool pool);
+ List<String> getAllDurableCqsFromServer(InternalPool pool);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/InternalCqQuery.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/InternalCqQuery.java
index 9d6c101..c0dab64 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/InternalCqQuery.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/InternalCqQuery.java
@@ -19,7 +19,6 @@ import org.apache.geode.cache.query.CqException;
import org.apache.geode.cache.query.CqQuery;
import org.apache.geode.cache.query.CqState;
import org.apache.geode.cache.query.internal.CqQueryVsdStats;
-import org.apache.geode.cache.query.internal.CqStateImpl;
import org.apache.geode.internal.cache.LocalRegion;
public interface InternalCqQuery extends CqQuery {
@@ -27,9 +26,9 @@ public interface InternalCqQuery extends CqQuery {
/**
* sets the CqName.
*/
- public abstract void setName(String cqName);
+ void setName(String cqName);
- public String getName();
+ String getName();
/**
* Closes the Query. On Client side, sends the cq close request to server. On Server side, takes
@@ -38,42 +37,42 @@ public interface InternalCqQuery extends CqQuery {
* @param sendRequestToServer true to send the request to server.
* @throws CqException
*/
- public abstract void close(boolean sendRequestToServer) throws CqClosedException, CqException;
+ void close(boolean sendRequestToServer) throws CqClosedException, CqException;
- public abstract LocalRegion getCqBaseRegion();
+ LocalRegion getCqBaseRegion();
/**
* @return Returns the serverCqName.
*/
- public abstract String getServerCqName();
+ String getServerCqName();
/**
* Sets the state of the cq. Server side method. Called during cq registration time.
*/
- public abstract void setCqState(int state);
+ void setCqState(int state);
/**
* get the region name in CQ query
*/
- public String getRegionName();
+ String getRegionName();
- public abstract void setCqService(CqService cqService);
+ void setCqService(CqService cqService);
/**
* Returns a reference to VSD stats of the CQ
*
* @return VSD stats of the CQ
*/
- public CqQueryVsdStats getVsdStats();
+ CqQueryVsdStats getVsdStats();
- public abstract CqState getState();
+ CqState getState();
- public String getQueryString();
+ String getQueryString();
- public abstract boolean isDurable();
+ boolean isDurable();
- public abstract void close() throws CqClosedException, CqException;
+ void close() throws CqClosedException, CqException;
- public abstract void stop() throws CqClosedException, CqException;
+ void stop() throws CqClosedException, CqException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ServerCQ.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ServerCQ.java
index d780f37..eb7e3b0 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ServerCQ.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/cq/ServerCQ.java
@@ -25,12 +25,12 @@ public interface ServerCQ extends InternalCqQuery {
/**
* @return the filterID
*/
- public abstract Long getFilterID();
+ Long getFilterID();
/**
* @param filterID the filterID to set
*/
- public abstract void setFilterID(Long filterID);
+ void setFilterID(Long filterID);
/**
* Register the Query on server.
@@ -39,15 +39,15 @@ public interface ServerCQ extends InternalCqQuery {
* @param p_ccn
* @throws CqException
*/
- public abstract void registerCq(ClientProxyMembershipID p_clientProxyId,
- CacheClientNotifier p_ccn, int p_cqState) throws CqException, RegionNotFoundException;
+ void registerCq(ClientProxyMembershipID p_clientProxyId, CacheClientNotifier p_ccn, int p_cqState)
+ throws CqException, RegionNotFoundException;
/**
* Adds into the CQ Results key cache.
*
* @param key
*/
- public abstract void addToCqResultKeys(Object key);
+ void addToCqResultKeys(Object key);
/**
* Removes the key from CQ Results key cache.
@@ -56,17 +56,17 @@ public interface ServerCQ extends InternalCqQuery {
* @param isTokenMode if true removes the key if its in destroy token mode if false removes the
* key without any check.
*/
- public abstract void removeFromCqResultKeys(Object key, boolean isTokenMode);
+ void removeFromCqResultKeys(Object key, boolean isTokenMode);
/**
* Sets the CQ Results key cache state as initialized.
*/
- public abstract void setCqResultsCacheInitialized();
+ void setCqResultsCacheInitialized();
/**
* Returns true if old value is required for query processing.
*/
- public abstract boolean isOldValueRequiredForQueryProcessing(Object key);
+ boolean isOldValueRequiredForQueryProcessing(Object key);
/**
* Closes the Query. On Client side, sends the cq close request to server. On Server side, takes
@@ -75,12 +75,12 @@ public interface ServerCQ extends InternalCqQuery {
* @param sendRequestToServer true to send the request to server.
* @throws CqException
*/
- public abstract void close(boolean sendRequestToServer) throws CqClosedException, CqException;
+ void close(boolean sendRequestToServer) throws CqClosedException, CqException;
- public abstract boolean isPR();
+ boolean isPR();
- public ClientProxyMembershipID getClientProxyId();
+ ClientProxyMembershipID getClientProxyId();
- public void stop() throws CqClosedException, CqException;
+ void stop() throws CqClosedException, CqException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
index 386047e..2ec0245 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexManager.java
@@ -231,7 +231,7 @@ public class IndexManager {
/** Test Hook */
public interface TestHook {
- public void hook(final int spot) throws RuntimeException;
+ void hook(final int spot) throws RuntimeException;
}
/**
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexProtocol.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexProtocol.java
index c32f4e9..1ee5e8a 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexProtocol.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexProtocol.java
@@ -14,7 +14,9 @@
*/
package org.apache.geode.cache.query.internal.index;
-import java.util.*;
+import java.util.Collection;
+import java.util.List;
+import java.util.Set;
import org.apache.geode.cache.query.AmbiguousNameException;
import org.apache.geode.cache.query.FunctionDomainException;
@@ -29,16 +31,15 @@ import org.apache.geode.cache.query.internal.ExecutionContext;
import org.apache.geode.cache.query.internal.RuntimeIterator;
import org.apache.geode.cache.query.types.ObjectType;
import org.apache.geode.internal.cache.RegionEntry;
-import org.apache.geode.internal.i18n.LocalizedStrings;
public interface IndexProtocol extends Index {
/**
* Constants that indicate three situations where we are removing a mapping. Some implementations
* of index handle some of the cases and not others.
*/
- static final int OTHER_OP = 0; // not an UPDATE but some other operation
- static final int BEFORE_UPDATE_OP = 1; // handled when there is no reverse map
- static final int AFTER_UPDATE_OP = 2; // handled when there is a reverse map
+ int OTHER_OP = 0; // not an UPDATE but some other operation
+ int BEFORE_UPDATE_OP = 1; // handled when there is no reverse map
+ int AFTER_UPDATE_OP = 2; // handled when there is a reverse map
boolean addIndexMapping(RegionEntry entry) throws IMQException;
@@ -171,7 +172,7 @@ public interface IndexProtocol extends Index {
*
* @return String array containing canonicalized definitions
*/
- public String[] getCanonicalizedIteratorDefinitions();
+ String[] getCanonicalizedIteratorDefinitions();
/**
* Asif: Object type of the data ( tuple ) contained in the Index Results . It will be either of
@@ -179,11 +180,11 @@ public interface IndexProtocol extends Index {
*
* @return ObjectType
*/
- public ObjectType getResultSetType();
+ ObjectType getResultSetType();
- public int getSizeEstimate(Object key, int op, int matchLevel) throws TypeMismatchException;
+ int getSizeEstimate(Object key, int op, int matchLevel) throws TypeMismatchException;
- public boolean isMatchingWithIndexExpression(CompiledValue condnExpr, String condnExprStr,
+ boolean isMatchingWithIndexExpression(CompiledValue condnExpr, String condnExprStr,
ExecutionContext context)
throws AmbiguousNameException, TypeMismatchException, NameResolutionException;
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexStore.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexStore.java
index 17bb227..2aafeda 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexStore.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexStore.java
@@ -31,7 +31,7 @@ public interface IndexStore {
* @param indexKey
* @param re
*/
- public void addMapping(Object indexKey, RegionEntry re) throws IMQException;
+ void addMapping(Object indexKey, RegionEntry re) throws IMQException;
/**
* Remove a mapping from the index store If entry at indexKey is not found, we must crawl the
@@ -40,7 +40,7 @@ public interface IndexStore {
* @param indexKey
* @param re
*/
- public void removeMapping(Object indexKey, RegionEntry re) throws IMQException;
+ void removeMapping(Object indexKey, RegionEntry re) throws IMQException;
/**
* Update a mapping in the index store. This method adds a new mapping and removes the old mapping
@@ -49,61 +49,61 @@ public interface IndexStore {
* @param oldKey
* @param re
*/
- public void updateMapping(Object indexKey, Object oldKey, RegionEntry re, Object oldValue)
+ void updateMapping(Object indexKey, Object oldKey, RegionEntry re, Object oldValue)
throws IMQException;
- public String printAll();
+ String printAll();
/**
* Return all of the IndexStoreEntries that map to a given region key.
*/
- public CloseableIterator<IndexStoreEntry> get(Object indexKey);
+ CloseableIterator<IndexStoreEntry> get(Object indexKey);
/**
* Return all of the IndexStoreEntries in the range between start and end.
*/
- public CloseableIterator<IndexStoreEntry> iterator(Object start, boolean startInclusive,
- Object end, boolean endInclusive, Collection keysToRemove);
+ CloseableIterator<IndexStoreEntry> iterator(Object start, boolean startInclusive, Object end,
+ boolean endInclusive, Collection keysToRemove);
/**
* Return all of the IndexStorageEntries that from start to the tail of the map.
*/
- public CloseableIterator<IndexStoreEntry> iterator(Object start, boolean startInclusive,
+ CloseableIterator<IndexStoreEntry> iterator(Object start, boolean startInclusive,
Collection keysToRemove);
/**
* Return all of the IndexStorageEntries in the map.
*/
- public CloseableIterator<IndexStoreEntry> iterator(Collection keysToRemove);
+ CloseableIterator<IndexStoreEntry> iterator(Collection keysToRemove);
/**
* Return all of the IndexStoreEntries from the end to the head of the map.
*/
- public CloseableIterator<IndexStoreEntry> descendingIterator(Object end, boolean endInclusive,
+ CloseableIterator<IndexStoreEntry> descendingIterator(Object end, boolean endInclusive,
Collection keysToRemove);
/**
* Return all of the IndexStoreEntries in the map in descending order.
*/
- public CloseableIterator<IndexStoreEntry> descendingIterator(Collection keysToRemove);
+ CloseableIterator<IndexStoreEntry> descendingIterator(Collection keysToRemove);
/**
* Return all of the IndexStoreEntries in the range between end and start.
*/
- public CloseableIterator<IndexStoreEntry> descendingIterator(Object start, boolean startInclusive,
+ CloseableIterator<IndexStoreEntry> descendingIterator(Object start, boolean startInclusive,
Object end, boolean endInclusive, Collection keysToRemove);
/**
* Return the number of IndexStoreEntries that map to a given Index key.
*/
- public int size(Object key);
+ int size(Object key);
/**
* Return the total keys in the Index store
*/
- public int size();
+ int size();
- public boolean clear();
+ boolean clear();
interface IndexStoreEntry {
/**
@@ -130,15 +130,15 @@ public interface IndexStore {
boolean isUpdateInProgress();
}
- public boolean isIndexOnRegionKeys();
+ boolean isIndexOnRegionKeys();
- public void setIndexOnRegionKeys(boolean indexOnRegionKeys);
+ void setIndexOnRegionKeys(boolean indexOnRegionKeys);
- public boolean isIndexOnValues();
+ boolean isIndexOnValues();
- public void setIndexOnValues(boolean indexOnValues);
+ void setIndexOnValues(boolean indexOnValues);
- public Object getTargetObject(RegionEntry entry);
+ Object getTargetObject(RegionEntry entry);
- public Object getTargetObjectInVM(RegionEntry entry);
+ Object getTargetObjectInVM(RegionEntry entry);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexedExpressionEvaluator.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexedExpressionEvaluator.java
index 2e975a5..1a62e1e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexedExpressionEvaluator.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/IndexedExpressionEvaluator.java
@@ -21,7 +21,6 @@ package org.apache.geode.cache.query.internal.index;
import java.util.List;
-import org.apache.geode.cache.query.internal.ExecutionContext;
import org.apache.geode.cache.query.types.ObjectType;
import org.apache.geode.internal.cache.RegionEntry;
@@ -30,21 +29,21 @@ import org.apache.geode.internal.cache.RegionEntry;
*/
public interface IndexedExpressionEvaluator {
- public String getIndexedExpression();
+ String getIndexedExpression();
- public String getFromClause();
+ String getFromClause();
- public String getProjectionAttributes();
+ String getProjectionAttributes();
/** @param add true if adding to index, false if removing */
- public void evaluate(RegionEntry target, boolean add) throws IMQException;
+ void evaluate(RegionEntry target, boolean add) throws IMQException;
- public void initializeIndex(boolean loadEntries) throws IMQException;
+ void initializeIndex(boolean loadEntries) throws IMQException;
- public ObjectType getIndexResultSetType();
+ ObjectType getIndexResultSetType();
- public void expansion(List expandedResults, Object lowerBoundKey, Object upperBoundKey,
+ void expansion(List expandedResults, Object lowerBoundKey, Object upperBoundKey,
int lowerBoundOperator, int upperBoundOperator, Object value) throws IMQException;
- public List getAllDependentIterators();
+ List getAllDependentIterators();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/types/CollectionType.java b/geode-core/src/main/java/org/apache/geode/cache/query/types/CollectionType.java
index 13ce5a9..79f8626 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/types/CollectionType.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/types/CollectionType.java
@@ -25,7 +25,7 @@ public interface CollectionType extends ObjectType {
/**
* Return the type of the elements of this collection type.
*/
- public ObjectType getElementType();
+ ObjectType getElementType();
/**
* Return whether duplicates are kept in this type of collection. Duplicates are two objects are
@@ -33,12 +33,12 @@ public interface CollectionType extends ObjectType {
*
* @return true if duplicates have been retained, false if duplicates have been eliminated
*/
- public boolean allowsDuplicates();
+ boolean allowsDuplicates();
/**
* Return whether this collection type has ordered elements.
*
* @return true if this collection type is ordered, false if not
*/
- public boolean isOrdered();
+ boolean isOrdered();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/types/MapType.java b/geode-core/src/main/java/org/apache/geode/cache/query/types/MapType.java
index 8bfc987..e9f6c10 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/types/MapType.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/types/MapType.java
@@ -29,11 +29,11 @@ public interface MapType extends CollectionType {
*
* @return the ObjectType of the keys in this type of map.
*/
- public ObjectType getKeyType();
+ ObjectType getKeyType();
/**
* Return the type of the entries in this map. In the context of the query language, the entries
* in a map are structs with key and value fields.
*/
- public StructType getEntryType();
+ StructType getEntryType();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/types/ObjectType.java b/geode-core/src/main/java/org/apache/geode/cache/query/types/ObjectType.java
index 76a12a6..9a05839 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/types/ObjectType.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/types/ObjectType.java
@@ -38,21 +38,21 @@ public interface ObjectType extends DataSerializable {
* also considered CollectionTypes in the context of the query language and therefore return true
* to this method.
*/
- public boolean isCollectionType();
+ boolean isCollectionType();
/** Return true if this is a MapType */
- public boolean isMapType();
+ boolean isMapType();
/** Return true if this is a StructType */
- public boolean isStructType();
+ boolean isStructType();
/**
* @return the simple name for the class this resolves to without including the package
*/
- public String getSimpleClassName();
+ String getSimpleClassName();
/**
* @return the Class that this type corresponds to.
*/
- public Class resolveClass();
+ Class resolveClass();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/types/StructType.java b/geode-core/src/main/java/org/apache/geode/cache/query/types/StructType.java
index 02a0517..0170b3e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/types/StructType.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/types/StructType.java
@@ -44,6 +44,6 @@ public interface StructType extends ObjectType {
* @throws IllegalArgumentException If this <code>StructType</code> does not contain a field named
* <code>fieldName</code>.
*/
- public int getFieldIndex(String fieldName);
+ int getFieldIndex(String fieldName);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/server/CacheServer.java b/geode-core/src/main/java/org/apache/geode/cache/server/CacheServer.java
index 60b2990..d5916d1 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/server/CacheServer.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/server/CacheServer.java
@@ -37,7 +37,7 @@ public interface CacheServer {
/**
* The default port on which a <Code>CacheServer</code> is configured to serve.
*/
- public static final int DEFAULT_PORT = 40404;
+ int DEFAULT_PORT = 40404;
/**
* The default number of sockets accepted by a CacheServer. When the maximum is reached the cache
@@ -45,7 +45,7 @@ public interface CacheServer {
*
* @since GemFire 5.7
*/
- public static final int DEFAULT_MAX_CONNECTIONS = 800;
+ int DEFAULT_MAX_CONNECTIONS = 800;
// Value derived from common file descriptor limits for Unix sytems (1024)...
/**
@@ -58,35 +58,35 @@ public interface CacheServer {
*
* @since GemFire 5.7
*/
- public static final int DEFAULT_MAX_THREADS = 0;
+ int DEFAULT_MAX_THREADS = 0;
/**
* The default notify-by-subscription value which tells the <Code>CacheServer</code> whether or
* not to notify clients based on key subscription.
*/
- public static final boolean DEFAULT_NOTIFY_BY_SUBSCRIPTION = true;
+ boolean DEFAULT_NOTIFY_BY_SUBSCRIPTION = true;
/**
* The default socket buffer size for socket buffers from the cache server to the client.
*/
- public static final int DEFAULT_SOCKET_BUFFER_SIZE = 32768;
+ int DEFAULT_SOCKET_BUFFER_SIZE = 32768;
/**
* The default maximum amount of time between client pings. This value is used by the
* <code>ClientHealthMonitor</code> to determine the health of this <code>CacheServer</code>'s
* clients.
*/
- public static final int DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS = 60000;
+ int DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS = 60000;
/**
* The default maximum number of messages that can be enqueued in a client-queue.
*/
- public static final int DEFAULT_MAXIMUM_MESSAGE_COUNT = 230000;
+ int DEFAULT_MAXIMUM_MESSAGE_COUNT = 230000;
/**
* The default time (in seconds ) after which a message in the client queue will expire.
*/
- public static final int DEFAULT_MESSAGE_TIME_TO_LIVE = 180;
+ int DEFAULT_MESSAGE_TIME_TO_LIVE = 180;
/**
* The default list of server groups a cache server belongs to. The current default is an empty
@@ -95,7 +95,7 @@ public interface CacheServer {
* @since GemFire 5.7
* @deprecated as of 7.0 use the groups gemfire property
*/
- public static final String[] DEFAULT_GROUPS = new String[0];
+ String[] DEFAULT_GROUPS = new String[0];
/**
* The default load balancing probe. The default load balancing probe reports the connections
@@ -104,7 +104,7 @@ public interface CacheServer {
* @since GemFire 5.7
*
*/
- public static final ServerLoadProbe DEFAULT_LOAD_PROBE = new ConnectionCountProbe();
+ ServerLoadProbe DEFAULT_LOAD_PROBE = new ConnectionCountProbe();
/**
* The default frequency at which to poll the load probe for the load on this cache server.
@@ -112,7 +112,7 @@ public interface CacheServer {
*
* @since GemFire 5.7
*/
- public static final long DEFAULT_LOAD_POLL_INTERVAL = 5000;
+ long DEFAULT_LOAD_POLL_INTERVAL = 5000;
/**
* The default ip address or host name that the cache server's socket will listen on for client
@@ -120,7 +120,7 @@ public interface CacheServer {
*
* @since GemFire 5.7
*/
- public static final String DEFAULT_BIND_ADDRESS = "";
+ String DEFAULT_BIND_ADDRESS = "";
/**
* The default ip address or host name that will be given to clients as the host this cache server
@@ -128,24 +128,24 @@ public interface CacheServer {
*
* @since GemFire 5.7
*/
- public static final String DEFAULT_HOSTNAME_FOR_CLIENTS = "";
+ String DEFAULT_HOSTNAME_FOR_CLIENTS = "";
/**
* The default setting for outgoing tcp/ip connections. By default the product enables tcpNoDelay.
*/
- public static final boolean DEFAULT_TCP_NO_DELAY = true;
+ boolean DEFAULT_TCP_NO_DELAY = true;
/**
* Returns the port on which this cache server listens for clients.
*/
- public int getPort();
+ int getPort();
/**
* Sets the port on which this cache server listens for clients.
*
* @throws IllegalStateException If this cache server is running
*/
- public void setPort(int port);
+ void setPort(int port);
/**
* Returns a string representing the ip address or host name that this cache server will listen
@@ -155,7 +155,7 @@ public interface CacheServer {
* @see #DEFAULT_BIND_ADDRESS
* @since GemFire 5.7
*/
- public String getBindAddress();
+ String getBindAddress();
/**
* Sets the ip address or host name that this cache server is to listen on for client connections.
@@ -176,7 +176,7 @@ public interface CacheServer {
* @see #DEFAULT_BIND_ADDRESS
* @since GemFire 5.7
*/
- public void setBindAddress(String address);
+ void setBindAddress(String address);
/**
* Returns a string representing the ip address or host name that server locators will tell
@@ -186,7 +186,7 @@ public interface CacheServer {
* @see #DEFAULT_HOSTNAME_FOR_CLIENTS
* @since GemFire 5.7
*/
- public String getHostnameForClients();
+ String getHostnameForClients();
/**
* Sets the ip address or host name that this cache server is to listen on for client connections.
@@ -205,7 +205,7 @@ public interface CacheServer {
* @see #DEFAULT_HOSTNAME_FOR_CLIENTS
* @since GemFire 5.7
*/
- public void setHostnameForClients(String name);
+ void setHostnameForClients(String name);
/**
* Sets whether or not this cache server should notify clients based on key subscription.
@@ -225,7 +225,7 @@ public interface CacheServer {
* attribute is set to true.
*/
@Deprecated
- public void setNotifyBySubscription(boolean b);
+ void setNotifyBySubscription(boolean b);
/**
* Answers whether or not this cache server should notify clients based on key subscription.
@@ -235,7 +235,7 @@ public interface CacheServer {
* attribute is set to true.
*/
@Deprecated
- public boolean getNotifyBySubscription();
+ boolean getNotifyBySubscription();
/**
* Sets the buffer size in bytes of the socket connection for this <code>CacheServer</code>. The
@@ -245,7 +245,7 @@ public interface CacheServer {
*
* @since GemFire 4.2.1
*/
- public void setSocketBufferSize(int socketBufferSize);
+ void setSocketBufferSize(int socketBufferSize);
/**
* Returns the configured buffer size of the socket connection for this <code>CacheServer</code>.
@@ -255,7 +255,7 @@ public interface CacheServer {
*
* @since GemFire 4.2.1
*/
- public int getSocketBufferSize();
+ int getSocketBufferSize();
/**
* Sets the maximum amount of time between client pings. This value is used by the
@@ -266,7 +266,7 @@ public interface CacheServer {
*
* @since GemFire 4.2.3
*/
- public void setMaximumTimeBetweenPings(int maximumTimeBetweenPings);
+ void setMaximumTimeBetweenPings(int maximumTimeBetweenPings);
/**
* Returns the maximum amount of time between client pings. This value is used by the
@@ -277,7 +277,7 @@ public interface CacheServer {
*
* @since GemFire 4.2.3
*/
- public int getMaximumTimeBetweenPings();
+ int getMaximumTimeBetweenPings();
/**
* Starts this cache server. Once the cache server is running, its configuration cannot be
@@ -285,23 +285,23 @@ public interface CacheServer {
*
* @throws IOException If an error occurs while starting the cache server
*/
- public void start() throws IOException;
+ void start() throws IOException;
/**
* Returns whether or not this cache server is running
*/
- public boolean isRunning();
+ boolean isRunning();
/**
* Stops this cache server. Note that the <code>CacheServer</code> can be reconfigured and
* restarted if desired.
*/
- public void stop();
+ void stop();
/**
* Returns the maximum allowed client connections
*/
- public int getMaxConnections();
+ int getMaxConnections();
/**
* Sets the maxium number of client connections allowed. When the maximum is reached the cache
@@ -309,7 +309,7 @@ public interface CacheServer {
*
* @see #DEFAULT_MAX_CONNECTIONS
*/
- public void setMaxConnections(int maxCons);
+ void setMaxConnections(int maxCons);
/**
* Returns the maxium number of threads allowed in this cache server to service client requests.
@@ -318,7 +318,7 @@ public interface CacheServer {
*
* @since GemFire 5.1
*/
- public int getMaxThreads();
+ int getMaxThreads();
/**
* Sets the maxium number of threads allowed in this cache server to service client requests. The
@@ -328,31 +328,31 @@ public interface CacheServer {
* @see #DEFAULT_MAX_THREADS
* @since GemFire 5.1
*/
- public void setMaxThreads(int maxThreads);
+ void setMaxThreads(int maxThreads);
/**
* Returns the maximum number of messages that can be enqueued in a client-queue.
*/
- public int getMaximumMessageCount();
+ int getMaximumMessageCount();
/**
* Sets maximum number of messages that can be enqueued in a client-queue.
*
* @see #DEFAULT_MAXIMUM_MESSAGE_COUNT
*/
- public void setMaximumMessageCount(int maxMessageCount);
+ void setMaximumMessageCount(int maxMessageCount);
/**
* Returns the time (in seconds ) after which a message in the client queue will expire.
*/
- public int getMessageTimeToLive();
+ int getMessageTimeToLive();
/**
* Sets the time (in seconds ) after which a message in the client queue will expire.
*
* @see #DEFAULT_MESSAGE_TIME_TO_LIVE
*/
- public void setMessageTimeToLive(int messageTimeToLive);
+ void setMessageTimeToLive(int messageTimeToLive);
/**
* Sets the list of server groups this cache server will belong to. By default cache servers
@@ -364,7 +364,7 @@ public interface CacheServer {
* @since GemFire 5.7
* @deprecated as of 7.0 use the groups gemfire property
*/
- public void setGroups(String[] groups);
+ void setGroups(String[] groups);
/**
* Returns the list of server groups that this cache server belongs to.
@@ -375,7 +375,7 @@ public interface CacheServer {
* @since GemFire 5.7
* @deprecated as of 7.0 use the groups gemfire property
*/
- public String[] getGroups();
+ String[] getGroups();
/**
* Get the load probe for this cache server. See {@link ServerLoadProbe} for details on the load
@@ -384,7 +384,7 @@ public interface CacheServer {
* @return the load probe used by this cache server.
* @since GemFire 5.7
*/
- public ServerLoadProbe getLoadProbe();
+ ServerLoadProbe getLoadProbe();
/**
* Set the load probe for this cache server. See {@link ServerLoadProbe} for details on how to
@@ -393,14 +393,14 @@ public interface CacheServer {
* @param loadProbe the load probe to use for this cache server.
* @since GemFire 5.7
*/
- public void setLoadProbe(ServerLoadProbe loadProbe);
+ void setLoadProbe(ServerLoadProbe loadProbe);
/**
* Get the frequency in milliseconds to poll the load probe on this cache server.
*
* @return the frequency in milliseconds that we will poll the load probe.
*/
- public long getLoadPollInterval();
+ long getLoadPollInterval();
/**
* Set the frequency in milliseconds to poll the load probe on this cache server
@@ -408,7 +408,7 @@ public interface CacheServer {
* @param loadPollInterval the frequency in milliseconds to poll the load probe. Must be greater
* than 0.
*/
- public void setLoadPollInterval(long loadPollInterval);
+ void setLoadPollInterval(long loadPollInterval);
/**
* Get the outgoing connection tcp-no-delay setting. If it is set to true (the default) this cache
@@ -417,7 +417,7 @@ public interface CacheServer {
*
* @return the tcp-no-delay setting
*/
- public boolean getTcpNoDelay();
+ boolean getTcpNoDelay();
/**
* Configures the tcpNoDelay setting of sockets used to send messages to clients. TcpNoDelay is
@@ -425,7 +425,7 @@ public interface CacheServer {
*
* @param noDelay if false, sets tcp-no-delay to false on out-going connections
*/
- public void setTcpNoDelay(boolean noDelay);
+ void setTcpNoDelay(boolean noDelay);
/**
* Get the ClientSubscriptionConfig for this cache server. See {@link ClientSubscriptionConfig}
@@ -434,7 +434,7 @@ public interface CacheServer {
* @return ClientSubscriptionConfig
* @since GemFire 5.7
*/
- public ClientSubscriptionConfig getClientSubscriptionConfig();
+ ClientSubscriptionConfig getClientSubscriptionConfig();
/**
* Returns the <code>ClientSession</code> associated with the <code>DistributedMember</code>
@@ -442,7 +442,7 @@ public interface CacheServer {
* @return the <code>ClientSession</code> associated with the <code>DistributedMember</code>
* @since GemFire 6.0
*/
- public ClientSession getClientSession(DistributedMember member);
+ ClientSession getClientSession(DistributedMember member);
/**
* Returns the <code>ClientSession</code> associated with the durable client id
@@ -450,7 +450,7 @@ public interface CacheServer {
* @return the <code>ClientSession</code> associated with the durable
* @since GemFire 6.0
*/
- public ClientSession getClientSession(String durableClientId);
+ ClientSession getClientSession(String durableClientId);
/**
* Returns a set of all <code>ClientSession</code>s
@@ -458,7 +458,7 @@ public interface CacheServer {
* @return a set of all <code>ClientSession</code>s
* @since GemFire 6.0
*/
- public Set<ClientSession> getAllClientSessions();
+ Set<ClientSession> getAllClientSessions();
/**
* Registers a new <code>InterestRegistrationListener</code> with the set of
@@ -468,7 +468,7 @@ public interface CacheServer {
*
* @since GemFire 6.0
*/
- public void registerInterestRegistrationListener(InterestRegistrationListener listener);
+ void registerInterestRegistrationListener(InterestRegistrationListener listener);
/**
* Unregisters an existing <code>InterestRegistrationListener</code> from the set of
@@ -478,7 +478,7 @@ public interface CacheServer {
*
* @since GemFire 6.0
*/
- public void unregisterInterestRegistrationListener(InterestRegistrationListener listener);
+ void unregisterInterestRegistrationListener(InterestRegistrationListener listener);
/**
* Returns a read-only set of <code>InterestRegistrationListener</code>s registered with this
@@ -489,6 +489,6 @@ public interface CacheServer {
*
* @since GemFire 6.0
*/
- public Set<InterestRegistrationListener> getInterestRegistrationListeners();
+ Set<InterestRegistrationListener> getInterestRegistrationListeners();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/server/ClientSubscriptionConfig.java b/geode-core/src/main/java/org/apache/geode/cache/server/ClientSubscriptionConfig.java
index bdd147e..e022fa6 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/server/ClientSubscriptionConfig.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/server/ClientSubscriptionConfig.java
@@ -68,17 +68,17 @@ public interface ClientSubscriptionConfig {
/**
* The default limit that is assigned to client subscription.
*/
- public static final int DEFAULT_CAPACITY = 1;
+ int DEFAULT_CAPACITY = 1;
/**
* The default eviction policy that is assigned to client subscription.
*/
- public static final String DEFAULT_EVICTION_POLICY = "none";
+ String DEFAULT_EVICTION_POLICY = "none";
/**
* The default overflow directory that is assigned to client subscription.
*/
- public static final String DEFAULT_OVERFLOW_DIRECTORY = ".";
+ String DEFAULT_OVERFLOW_DIRECTORY = ".";
/**
* Returns the capacity of the client queue. will be in MB for eviction-policy <b>mem</b> else
@@ -87,7 +87,7 @@ public interface ClientSubscriptionConfig {
* @see #DEFAULT_CAPACITY
* @since GemFire 5.7
*/
- public int getCapacity();
+ int getCapacity();
/**
* Sets the capacity of the client queue. will be in MB for eviction-policy <b>mem</b> else number
@@ -96,7 +96,7 @@ public interface ClientSubscriptionConfig {
* @see #DEFAULT_CAPACITY
* @since GemFire 5.7
*/
- public void setCapacity(int capacity);
+ void setCapacity(int capacity);
/**
* Returns the eviction policy that is executed when capacity of the client queue is reached.
@@ -104,7 +104,7 @@ public interface ClientSubscriptionConfig {
* @see #DEFAULT_EVICTION_POLICY
* @since GemFire 5.7
*/
- public String getEvictionPolicy();
+ String getEvictionPolicy();
/**
* Sets the eviction policy that is executed when capacity of the client queue is reached.
@@ -112,7 +112,7 @@ public interface ClientSubscriptionConfig {
* @see #DEFAULT_EVICTION_POLICY
* @since GemFire 5.7
*/
- public void setEvictionPolicy(String policy);
+ void setEvictionPolicy(String policy);
/**
* Sets the overflow directory for a client queue
@@ -121,7 +121,7 @@ public interface ClientSubscriptionConfig {
* @since GemFire 5.7
* @deprecated as of 6.5 use {@link #setDiskStoreName(String)} instead
*/
- public void setOverflowDirectory(String overflowDirectory);
+ void setOverflowDirectory(String overflowDirectory);
/**
* Answers the overflow directory for a client queue's overflowed client queue entries.
@@ -130,7 +130,7 @@ public interface ClientSubscriptionConfig {
* @since GemFire 5.7
* @deprecated as of 6.5 use {@link #getDiskStoreName} instead
*/
- public String getOverflowDirectory();
+ String getOverflowDirectory();
/**
* Sets the disk store name for overflow
@@ -138,12 +138,12 @@ public interface ClientSubscriptionConfig {
* @param diskStoreName
* @since GemFire 6.5
*/
- public void setDiskStoreName(String diskStoreName);
+ void setDiskStoreName(String diskStoreName);
/**
* get the diskStoreName for overflow
*
* @since GemFire 6.5
*/
- public String getDiskStoreName();
+ String getDiskStoreName();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/snapshot/RegionSnapshotService.java b/geode-core/src/main/java/org/apache/geode/cache/snapshot/RegionSnapshotService.java
index c066786..9d291bb 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/snapshot/RegionSnapshotService.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/snapshot/RegionSnapshotService.java
@@ -84,7 +84,7 @@ public interface RegionSnapshotService<K, V> {
/**
* File extension for snapshot files
*/
- public static final String SNAPSHOT_FILE_EXTENSION = ".gfd";
+ String SNAPSHOT_FILE_EXTENSION = ".gfd";
/**
* Creates a <code>SnapshotOptions</code> object configured with default settings. The options can
diff --git a/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictHelper.java b/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictHelper.java
index 30c6880..2f07989 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictHelper.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictHelper.java
@@ -22,8 +22,8 @@ package org.apache.geode.cache.util;
*/
public interface GatewayConflictHelper {
/** disallow the event */
- public void disallowEvent();
+ void disallowEvent();
/** modify the value stored in the cache */
- public void changeEventValue(Object value);
+ void changeEventValue(Object value);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictResolver.java b/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictResolver.java
index b4e9616..2f90dab 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictResolver.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/util/GatewayConflictResolver.java
@@ -46,6 +46,6 @@ public interface GatewayConflictResolver {
* @param event the event that is in conflict with the current cache state
* @param helper an object to be used in modifying the course of action for this event
*/
- public void onEvent(TimestampedEntryEvent event, GatewayConflictHelper helper);
+ void onEvent(TimestampedEntryEvent event, GatewayConflictHelper helper);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/util/GatewayEvent.java b/geode-core/src/main/java/org/apache/geode/cache/util/GatewayEvent.java
index da6748f..40604f2 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/util/GatewayEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/util/GatewayEvent.java
@@ -35,56 +35,56 @@ public interface GatewayEvent {
*
* @return the <code>Region</code> associated with this <code>GatewayEvent</code>
*/
- public Region<?, ?> getRegion();
+ Region<?, ?> getRegion();
/**
* Returns the <code>Operation</code> that triggered this event.
*
* @return the <code>Operation</code> that triggered this event
*/
- public Operation getOperation();
+ Operation getOperation();
/**
* Returns the callbackArgument associated with this event.
*
* @return the callbackArgument associated with this event
*/
- public Object getCallbackArgument();
+ Object getCallbackArgument();
/**
* Returns the key associated with this event.
*
* @return the key associated with this event
*/
- public Object getKey();
+ Object getKey();
/**
* Returns the deserialized value associated with this event.
*
* @return the deserialized value associated with this event
*/
- public Object getDeserializedValue();
+ Object getDeserializedValue();
/**
* Returns the serialized form of the value associated with this event.
*
* @return the serialized form of the value associated with this event
*/
- public byte[] getSerializedValue();
+ byte[] getSerializedValue();
/**
* Sets whether this event is a possible duplicate.
*
* @param possibleDuplicate whether this event is a possible duplicate
*/
- public void setPossibleDuplicate(boolean possibleDuplicate);
+ void setPossibleDuplicate(boolean possibleDuplicate);
/**
* Returns whether this event is a possible duplicate.
*
* @return whether this event is a possible duplicate
*/
- public boolean getPossibleDuplicate();
+ boolean getPossibleDuplicate();
/**
* Returns the creation timestamp in milliseconds.
@@ -93,5 +93,5 @@ public interface GatewayEvent {
*
* @since GemFire 6.0
*/
- public long getCreationTime();
+ long getCreationTime();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/util/ObjectSizer.java b/geode-core/src/main/java/org/apache/geode/cache/util/ObjectSizer.java
index d633195..55120d3 100755
--- a/geode-core/src/main/java/org/apache/geode/cache/util/ObjectSizer.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/util/ObjectSizer.java
@@ -47,7 +47,7 @@ public interface ObjectSizer {
*
* @since GemFire 6.5
*/
- public static final ObjectSizer SIZE_CLASS_ONCE = SizeClassOnceObjectSizer.getInstance();
+ ObjectSizer SIZE_CLASS_ONCE = SizeClassOnceObjectSizer.getInstance();
/**
* An implementation of {@link ObjectSizer} that calculates an accurate size for each object that
@@ -61,7 +61,7 @@ public interface ObjectSizer {
*
* @since GemFire 6.5
*/
- public static final ObjectSizer REFLECTION_SIZE = ReflectionObjectSizer.getInstance();
+ ObjectSizer REFLECTION_SIZE = ReflectionObjectSizer.getInstance();
/**
@@ -69,8 +69,8 @@ public interface ObjectSizer {
*
* @since GemFire 6.5
*/
- public static final ObjectSizer DEFAULT = SIZE_CLASS_ONCE;
+ ObjectSizer DEFAULT = SIZE_CLASS_ONCE;
- public int sizeof(Object o);
+ int sizeof(Object o);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/util/TimestampedEntryEvent.java b/geode-core/src/main/java/org/apache/geode/cache/util/TimestampedEntryEvent.java
index 9bedbc3..81c9cad 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/util/TimestampedEntryEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/util/TimestampedEntryEvent.java
@@ -29,11 +29,11 @@ public interface TimestampedEntryEvent extends org.apache.geode.cache.EntryEvent
// getOldValue(), getNewValue()
// getSerializedOldValue(), getSerializedNewValue()
- public int getNewDistributedSystemID();
+ int getNewDistributedSystemID();
- public int getOldDistributedSystemID();
+ int getOldDistributedSystemID();
- public long getNewTimestamp();
+ long getNewTimestamp();
- public long getOldTimestamp();
+ long getOldTimestamp();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventFilter.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventFilter.java
index 1ed4dc7..3cac778 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventFilter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventFilter.java
@@ -32,7 +32,7 @@ public interface GatewayEventFilter extends CacheCallback {
* @param event
* @return true if event should be enqueued otherwise return false.
*/
- public boolean beforeEnqueue(GatewayQueueEvent event);
+ boolean beforeEnqueue(GatewayQueueEvent event);
/**
* It will be invoked before dispatching event to remote GatewayReceiver <br>
@@ -44,7 +44,7 @@ public interface GatewayEventFilter extends CacheCallback {
* @param event
* @return true if event should be dispatched otherwise return false.
*/
- public boolean beforeTransmit(GatewayQueueEvent event);
+ boolean beforeTransmit(GatewayQueueEvent event);
/**
* It will be invoked once GatewaySender receives an ack from remote GatewayReceiver <br>
@@ -53,6 +53,6 @@ public interface GatewayEventFilter extends CacheCallback {
*
* @param event
*/
- public void afterAcknowledgement(GatewayQueueEvent event);
+ void afterAcknowledgement(GatewayQueueEvent event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventSubstitutionFilter.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventSubstitutionFilter.java
index bfbff85..40838b8 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventSubstitutionFilter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayEventSubstitutionFilter.java
@@ -32,5 +32,5 @@ public interface GatewayEventSubstitutionFilter<K, V> extends CacheCallback {
* @return the substitute value to be stored in the <code>GatewayQueueEvent</code> and enqueued in
* the <code>RegionQueue</code>
*/
- public Object getSubstituteValue(EntryEvent<K, V> event);
+ Object getSubstituteValue(EntryEvent<K, V> event);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayQueueEvent.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayQueueEvent.java
index 7f7820c..4b6404c 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayQueueEvent.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayQueueEvent.java
@@ -31,28 +31,28 @@ public interface GatewayQueueEvent<K, V> {
* @return the <code>Region</code> associated with this AsyncEvent OR null if <code>Region</code>
* not found (e.g. this can happen if it is destroyed).
*/
- public Region<K, V> getRegion();
+ Region<K, V> getRegion();
/**
* Returns the <code>Operation</code> that triggered this event.
*
* @return the <code>Operation</code> that triggered this event
*/
- public Operation getOperation();
+ Operation getOperation();
/**
* Returns the callbackArgument associated with this event.
*
* @return the callbackArgument associated with this event
*/
- public Object getCallbackArgument();
+ Object getCallbackArgument();
/**
* Returns the key associated with this event.
*
* @return the key associated with this event
*/
- public K getKey();
+ K getKey();
/**
* Returns the deserialized value associated with this event.
@@ -62,7 +62,7 @@ public interface GatewayQueueEvent<K, V> {
* @throws IllegalStateException may be thrown if the event's value was stored off-heap and
* {@link AsyncEventListener#processEvents(java.util.List)} has already returned.
*/
- public V getDeserializedValue();
+ V getDeserializedValue();
/**
* Returns the serialized form of the value associated with this event.
@@ -72,5 +72,5 @@ public interface GatewayQueueEvent<K, V> {
* @throws IllegalStateException may be thrown if the event's value was stored off-heap and
* {@link AsyncEventListener#processEvents(java.util.List)} has already returned.
*/
- public byte[] getSerializedValue();
+ byte[] getSerializedValue();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiver.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiver.java
index 45266f7..43d398e 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiver.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiver.java
@@ -30,51 +30,51 @@ import org.apache.geode.distributed.internal.DistributionConfig;
*/
public interface GatewayReceiver {
- public static final String RECEIVER_GROUP = "__recv__group";
+ String RECEIVER_GROUP = "__recv__group";
/**
* The default maximum amount of time between client pings. This value is used by the
* <code>ClientHealthMonitor</code> to determine the health of this <code>GatewayReceiver</code>'s
* clients.
*/
- public static final int DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS = 60000;
+ int DEFAULT_MAXIMUM_TIME_BETWEEN_PINGS = 60000;
/**
* Default start value of the port range from which the <code>GatewayReceiver</code>'s port will
* be chosen
*/
- public static final int DEFAULT_START_PORT = 5000;
+ int DEFAULT_START_PORT = 5000;
/**
* Default end value of the port range from which the <code>GatewayReceiver</code>'s port will be
* chosen
*/
- public static final int DEFAULT_END_PORT = 5500;
+ int DEFAULT_END_PORT = 5500;
/**
* The default buffer size for socket buffers for the <code>GatewayReceiver</code>.
*/
- public static final int DEFAULT_SOCKET_BUFFER_SIZE = 524288;
+ int DEFAULT_SOCKET_BUFFER_SIZE = 524288;
/**
* The default ip address or host name that the receiver's socket will listen on for client
* connections. The current default is an empty string.
*/
- public static final String DEFAULT_BIND_ADDRESS = "";
+ String DEFAULT_BIND_ADDRESS = "";
- public static final String DEFAULT_HOSTNAME_FOR_SENDERS = "";
+ String DEFAULT_HOSTNAME_FOR_SENDERS = "";
/**
* The default value for manually starting a <code>GatewayReceiver</code>.
*
* @since GemFire 8.1
*/
- public static final boolean DEFAULT_MANUAL_START = false;
+ boolean DEFAULT_MANUAL_START = false;
/**
* If the batch already seen by this receiver, arrives again then whether it is to be re-applied
* or not is decided by this attribute.
*/
- public static final boolean APPLY_RETRIES =
+ boolean APPLY_RETRIES =
Boolean.getBoolean(DistributionConfig.GEMFIRE_PREFIX + "GatewayReceiver.ApplyRetries");
/**
@@ -82,25 +82,25 @@ public interface GatewayReceiver {
*
* @throws IOException If an error occurs while starting the receiver
*/
- public void start() throws IOException;
+ void start() throws IOException;
/**
* Stops this receiver. Note that the <code>GatewayReceiver</code> can be reconfigured and
* restarted if desired.
*/
- public void stop();
+ void stop();
/**
* Returns whether or not this receiver is running
*/
- public boolean isRunning();
+ boolean isRunning();
/**
* Returns the list of <code>GatewayTransportFilter</code> added to this GatewayReceiver.
*
* @return the list of <code>GatewayTransportFilter</code> added to this GatewayReceiver.
*/
- public List<GatewayTransportFilter> getGatewayTransportFilters();
+ List<GatewayTransportFilter> getGatewayTransportFilters();
/**
* Returns the maximum amount of time between client pings. This value is used by the
@@ -109,24 +109,24 @@ public interface GatewayReceiver {
*
* @return the maximum amount of time between client pings.
*/
- public int getMaximumTimeBetweenPings();
+ int getMaximumTimeBetweenPings();
/**
* Returns the port on which this <code>GatewayReceiver</code> listens for clients.
*/
- public int getPort();
+ int getPort();
/**
* Returns start value of the port range from which the <code>GatewayReceiver</code>'s port will
* be chosen.
*/
- public int getStartPort();
+ int getStartPort();
/**
* Returns end value of the port range from which the <code>GatewayReceiver</code>'s port will be
* chosen.
*/
- public int getEndPort();
+ int getEndPort();
/**
* Returns a string representing the ip address or host name that server locators will tell
@@ -134,12 +134,12 @@ public interface GatewayReceiver {
*
* @return the ip address or host name to give to clients so they can connect to this receiver
*/
- public String getHost();
+ String getHost();
/**
* Returns the hostname configured by {@link GatewayReceiverFactory#setHostnameForSenders(String)}
*/
- public String getHostnameForSenders();
+ String getHostnameForSenders();
/**
* Returns the configured buffer size of the socket connection for this
@@ -148,7 +148,7 @@ public interface GatewayReceiver {
* @return the configured buffer size of the socket connection for this
* <code>GatewayReceiver</code>
*/
- public int getSocketBufferSize();
+ int getSocketBufferSize();
/**
* Returns a string representing the ip address or host name that this server will listen on.
@@ -156,7 +156,7 @@ public interface GatewayReceiver {
* @return the ip address or host name that this server is to listen on
* @see #DEFAULT_BIND_ADDRESS
*/
- public String getBindAddress();
+ String getBindAddress();
/**
* Returns the manual start boolean property for this GatewayReceiver. Default is true i.e. the
@@ -165,11 +165,11 @@ public interface GatewayReceiver {
* @return the manual start boolean property for this GatewayReceiver
*
*/
- public boolean isManualStart();
+ boolean isManualStart();
/**
* Return the underlying Cacheserver
*/
- public CacheServer getServer();
+ CacheServer getServer();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiverFactory.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiverFactory.java
index 038bbb1..b5726f4 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiverFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayReceiverFactory.java
@@ -26,7 +26,7 @@ public interface GatewayReceiverFactory {
*
* @param startPort
*/
- public GatewayReceiverFactory setStartPort(int startPort);
+ GatewayReceiverFactory setStartPort(int startPort);
/**
* Sets the end port for the GatewayReceiver. If set the GatewayReceiver will start at one of the
@@ -34,7 +34,7 @@ public interface GatewayReceiverFactory {
*
* @param endPort
*/
- public GatewayReceiverFactory setEndPort(int endPort);
+ GatewayReceiverFactory setEndPort(int endPort);
/**
* Sets the buffer size in bytes of the socket connection for this <code>GatewayReceiver</code>.
@@ -42,7 +42,7 @@ public interface GatewayReceiverFactory {
*
* @param socketBufferSize The size in bytes of the socket buffer
*/
- public GatewayReceiverFactory setSocketBufferSize(int socketBufferSize);
+ GatewayReceiverFactory setSocketBufferSize(int socketBufferSize);
/**
* Sets the ip address or host name that this <code>GatewayReceiver</code> is to listen on for
@@ -50,28 +50,28 @@ public interface GatewayReceiverFactory {
*
* @param address String representing ip address or host name
*/
- public GatewayReceiverFactory setBindAddress(String address);
+ GatewayReceiverFactory setBindAddress(String address);
/**
* Adds a <code>GatewayTransportFilter</code>
*
* @param filter GatewayTransportFilter
*/
- public GatewayReceiverFactory addGatewayTransportFilter(GatewayTransportFilter filter);
+ GatewayReceiverFactory addGatewayTransportFilter(GatewayTransportFilter filter);
/**
* Removes a <code>GatewayTransportFilter</code>
*
* @param filter GatewayTransportFilter
*/
- public GatewayReceiverFactory removeGatewayTransportFilter(GatewayTransportFilter filter);
+ GatewayReceiverFactory removeGatewayTransportFilter(GatewayTransportFilter filter);
/**
* Sets the maximum amount of time between client pings.The default is 60000 ms.
*
* @param time The maximum amount of time between client pings
*/
- public GatewayReceiverFactory setMaximumTimeBetweenPings(int time);
+ GatewayReceiverFactory setMaximumTimeBetweenPings(int time);
/**
* Sets the ip address or host name that server locators will tell GatewaySenders that this
@@ -79,7 +79,7 @@ public interface GatewayReceiverFactory {
*
* @param address String representing ip address or host name
*/
- public GatewayReceiverFactory setHostnameForSenders(String address);
+ GatewayReceiverFactory setHostnameForSenders(String address);
/**
* Sets the manual start boolean property for this <code>GatewayReceiver</code>.
@@ -91,13 +91,13 @@ public interface GatewayReceiverFactory {
*
* @param start the manual start boolean property for this <code>GatewayReceiver</code>
*/
- public GatewayReceiverFactory setManualStart(boolean start);
+ GatewayReceiverFactory setManualStart(boolean start);
/**
* Creates and returns an instance of <code>GatewayReceiver</code>
*
* @return instance of GatewayReceiver
*/
- public GatewayReceiver create();
+ GatewayReceiver create();
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySender.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySender.java
index a7e3684..ea96345 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySender.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySender.java
@@ -31,23 +31,23 @@ public interface GatewaySender {
* @deprecated - Manual start of senders is deprecated and will be removed in a later release.
*/
@Deprecated
- public static final boolean DEFAULT_MANUAL_START = false;
+ boolean DEFAULT_MANUAL_START = false;
/**
* The default value ( true) for writing to disk synchronously in case of persistence.
*/
- public static final boolean DEFAULT_DISK_SYNCHRONOUS = true;
+ boolean DEFAULT_DISK_SYNCHRONOUS = true;
/**
* The default buffer size for socket buffers from a sending GatewaySender to its receiving
* <code>GatewayReceiver</code>.
*/
- public static final int DEFAULT_SOCKET_BUFFER_SIZE = 524288;
+ int DEFAULT_SOCKET_BUFFER_SIZE = 524288;
/**
* The default amount of time in milliseconds that a socket read between a sending
* <code>Gateway</code> and its receiving <code>Gateway</code> will block.
*/
- public static final int DEFAULT_SOCKET_READ_TIMEOUT = Integer
+ int DEFAULT_SOCKET_READ_TIMEOUT = Integer
.getInteger(
DistributionConfig.GEMFIRE_PREFIX + "cache.gatewaySender.default-socket-read-timeout", 0)
.intValue();
@@ -55,12 +55,12 @@ public interface GatewaySender {
/**
* The default minimum socket read timeout.
*/
- public static final int MINIMUM_SOCKET_READ_TIMEOUT = 30000;
+ int MINIMUM_SOCKET_READ_TIMEOUT = 30000;
/**
* Size of the oplog file used for the persistent queue in bytes
*/
- public static final int QUEUE_OPLOG_SIZE =
+ int QUEUE_OPLOG_SIZE =
Integer.getInteger(DistributionConfig.GEMFIRE_PREFIX + "cache.gatewaySender.queueOpLogSize",
1024 * 1024 * 100).intValue();
@@ -68,51 +68,50 @@ public interface GatewaySender {
/**
* The default value (false)of whether to persist queue data to disk or not.
*/
- public static final boolean DEFAULT_PERSISTENCE_ENABLED = false;
+ boolean DEFAULT_PERSISTENCE_ENABLED = false;
/**
* The default batch conflation
*/
- public static final boolean DEFAULT_BATCH_CONFLATION = false;
+ boolean DEFAULT_BATCH_CONFLATION = false;
/**
* The default batch size
*/
- public static final int DEFAULT_BATCH_SIZE = 100;
+ int DEFAULT_BATCH_SIZE = 100;
/**
* The default batch time interval in milliseconds
*/
- public static final int DEFAULT_BATCH_TIME_INTERVAL = 1000;
+ int DEFAULT_BATCH_TIME_INTERVAL = 1000;
/**
* The default alert threshold in milliseconds
*/
- public static final int DEFAULT_ALERT_THRESHOLD = 0;
+ int DEFAULT_ALERT_THRESHOLD = 0;
- public static final int DEFAULT_PARALLELISM_REPLICATED_REGION =
- Integer.getInteger(DistributionConfig.GEMFIRE_PREFIX
- + "cache.gatewaySender.defaultParallelismForReplicatedRegion", 113).intValue();
+ int DEFAULT_PARALLELISM_REPLICATED_REGION = Integer.getInteger(DistributionConfig.GEMFIRE_PREFIX
+ + "cache.gatewaySender.defaultParallelismForReplicatedRegion", 113).intValue();
- public static final int DEFAULT_DISTRIBUTED_SYSTEM_ID = -1;
+ int DEFAULT_DISTRIBUTED_SYSTEM_ID = -1;
- public static final int DEFAULT_DISPATCHER_THREADS = 5;
+ int DEFAULT_DISPATCHER_THREADS = 5;
- public static final boolean DEFAULT_FORWARD_EXPIRATION_DESTROY = false;
+ boolean DEFAULT_FORWARD_EXPIRATION_DESTROY = false;
- public static final OrderPolicy DEFAULT_ORDER_POLICY = OrderPolicy.KEY;
+ OrderPolicy DEFAULT_ORDER_POLICY = OrderPolicy.KEY;
/**
* The default maximum amount of memory (MB) to allow in the queue before overflowing entries to
* disk
*/
- public static final int DEFAULT_MAXIMUM_QUEUE_MEMORY = 100;
+ int DEFAULT_MAXIMUM_QUEUE_MEMORY = 100;
/**
* Time, in seconds, that we allow before a <code>GatewaySender is considered dead and should be
* aborted
*/
- public static final long GATEWAY_SENDER_TIMEOUT = Integer
+ long GATEWAY_SENDER_TIMEOUT = Integer
.getInteger(DistributionConfig.GEMFIRE_PREFIX + "GATEWAY_SENDER_TIMEOUT", 30).intValue();
@@ -120,10 +119,10 @@ public interface GatewaySender {
* The obsolete socket read timeout java system property. Since customers have been given this
* property, it is used to log a warning.
*/
- public static final String GATEWAY_CONNECTION_READ_TIMEOUT_PROPERTY =
+ String GATEWAY_CONNECTION_READ_TIMEOUT_PROPERTY =
DistributionConfig.GEMFIRE_PREFIX + "GatewaySender.GATEWAY_CONNECTION_READ_TIMEOUT";
- public static final int GATEWAY_CONNECTION_IDLE_TIMEOUT = Integer
+ int GATEWAY_CONNECTION_IDLE_TIMEOUT = Integer
.getInteger(
DistributionConfig.GEMFIRE_PREFIX + "GatewaySender.GATEWAY_CONNECTION_IDLE_TIMEOUT", -1)
.intValue();
@@ -131,24 +130,24 @@ public interface GatewaySender {
/**
* If the System property is set, use it. Otherwise, set default to 'true'.
*/
- public static final boolean REMOVE_FROM_QUEUE_ON_EXCEPTION = (System.getProperty(
+ boolean REMOVE_FROM_QUEUE_ON_EXCEPTION = (System.getProperty(
DistributionConfig.GEMFIRE_PREFIX + "GatewaySender.REMOVE_FROM_QUEUE_ON_EXCEPTION") != null)
? Boolean.getBoolean(
DistributionConfig.GEMFIRE_PREFIX + "GatewaySender.REMOVE_FROM_QUEUE_ON_EXCEPTION")
: true;
- public static final boolean EARLY_ACK =
+ boolean EARLY_ACK =
Boolean.getBoolean(DistributionConfig.GEMFIRE_PREFIX + "GatewaySender.EARLY_ACK");
- public static final boolean DEFAULT_IS_PARALLEL = false;
+ boolean DEFAULT_IS_PARALLEL = false;
- public static final boolean DEFAULT_IS_FOR_INTERNAL_USE = false;
+ boolean DEFAULT_IS_FOR_INTERNAL_USE = false;
/**
* Retry a connection from sender to receiver after specified time interval (in milliseconds) in
* case receiver is not up and running. Default is set to 1000 milliseconds i.e. 1 second.
*/
- public static final int CONNECTION_RETRY_INTERVAL = Integer
+ int CONNECTION_RETRY_INTERVAL = Integer
.getInteger(DistributionConfig.GEMFIRE_PREFIX + "gateway-connection-retry-interval", 1000)
.intValue();
@@ -157,7 +156,7 @@ public interface GatewaySender {
*
* @since GemFire 6.5.1
*/
- public enum OrderPolicy {
+ enum OrderPolicy {
/**
* Indicates that events will be parallelized based on the event's originating member and thread
*/
@@ -178,7 +177,7 @@ public interface GatewaySender {
* Starts this GatewaySender. Once the GatewaySender is running, its configuration cannot be
* changed.
*/
- public void start();
+ void start();
/**
* Stops this GatewaySender. The scope of this operation is the VM on which it is invoked. In case
@@ -192,7 +191,7 @@ public interface GatewaySender {
*
* @see GatewaySender#isParallel()
*/
- public void stop();
+ void stop();
/**
* Pauses the dispatching of the events from the underlying queue. It should be kept in mind that
@@ -211,63 +210,63 @@ public interface GatewaySender {
* @see GatewaySender#getBatchSize()
* @see GatewaySender#resume()
*/
- public void pause();
+ void pause();
/**
* Resumes this paused GatewaySender.
*/
- public void resume();
+ void resume();
/**
* Rebalances this GatewaySender.
*/
- public void rebalance();
+ void rebalance();
/**
* Returns whether or not this GatewaySender is running.
*/
- public boolean isRunning();
+ boolean isRunning();
/**
* Returns whether or not this GatewaySender is paused.
*
*/
- public boolean isPaused();
+ boolean isPaused();
/**
* Adds the provided <code>GatewayEventFilter</code> to this GatewaySender.
*
* @param filter
*/
- public void addGatewayEventFilter(GatewayEventFilter filter);
+ void addGatewayEventFilter(GatewayEventFilter filter);
/**
* Removes the provided <code>GatewayEventFilter</code> from this GatewaySender.
*
* @param filter
*/
- public void removeGatewayEventFilter(GatewayEventFilter filter);
+ void removeGatewayEventFilter(GatewayEventFilter filter);
/**
* Returns this <code>GatewaySender's</code> <code>GatewayEventSubstitutionFilter</code>.
*
* @return this <code>GatewaySender's</code> <code>GatewayEventSubstitutionFilter</code>
*/
- public GatewayEventSubstitutionFilter getGatewayEventSubstitutionFilter();
+ GatewayEventSubstitutionFilter getGatewayEventSubstitutionFilter();
/**
* Returns the id of this GatewaySender.
*
* @return the id of this GatewaySender.
*/
- public String getId();
+ String getId();
/**
* Returns the id of the remote <code>GatewayReceiver</code>'s DistributedSystem.
*
* @return the id of the remote <code>GatewayReceiver</code>'s DistributedSystem.
*/
- public int getRemoteDSId();
+ int getRemoteDSId();
/**
* Returns the configured buffer size of the socket connection between this GatewaySender and its
@@ -276,7 +275,7 @@ public interface GatewaySender {
* @return the configured buffer size of the socket connection between this GatewaySender and its
* receiving <code>GatewayReceiver</code>
*/
- public int getSocketBufferSize();
+ int getSocketBufferSize();
/**
* Returns the amount of time in milliseconds that a socket read between a sending GatewaySender
@@ -286,28 +285,28 @@ public interface GatewaySender {
* @return the amount of time in milliseconds that a socket read between a sending GatewaySender
* and its receiving <code>GatewayReceiver</code> will block
*/
- public int getSocketReadTimeout();
+ int getSocketReadTimeout();
/**
* Gets the disk store name for overflow or persistence.
*
* @return disk store name
*/
- public String getDiskStoreName();
+ String getDiskStoreName();
/**
* Returns the maximum amount of memory (in MB) for a GatewaySender's queue. The default is 100.
*
* @return maximum amount of memory (in MB) for a GatewaySender's queue
*/
- public int getMaximumQueueMemory();
+ int getMaximumQueueMemory();
/**
* Returns the batch size for this GatewaySender. Default batchSize is 100.
*
* @return the batch size for this GatewaySender.
*/
- public int getBatchSize();
+ int getBatchSize();
/**
* Returns the batch time interval for this GatewaySender. Default value of batchTimeInterval is
@@ -315,7 +314,7 @@ public interface GatewaySender {
*
* @return the batch time interval for this GatewaySender
*/
- public int getBatchTimeInterval();
+ int getBatchTimeInterval();
/**
* Answers whether to enable batch conflation for a GatewaySender 's queue. The default value is
@@ -324,7 +323,7 @@ public interface GatewaySender {
* @return whether to enable batch conflation for batches sent from a GatewaySender to its
* corresponding <code>GatewayReceiver</code>.
*/
- public boolean isBatchConflationEnabled();
+ boolean isBatchConflationEnabled();
/**
* Returns true if persistence is enabled for this GatewaySender, otherwise returns false. Default
@@ -332,7 +331,7 @@ public interface GatewaySender {
*
* @return true if persistence is enabled for this GatewaySender
*/
- public boolean isPersistenceEnabled();
+ boolean isPersistenceEnabled();
/**
* Returns the alert threshold in milliseconds for entries in a GatewaySender's queue. Default
@@ -341,14 +340,14 @@ public interface GatewaySender {
* @return the alert threshold for entries in a GatewaySender's queue
*
*/
- public int getAlertThreshold();
+ int getAlertThreshold();
/**
* Returns the list of <code>GatewayEventFilter</code> added to this GatewaySender.
*
* @return the list of <code>GatewayEventFilter</code> added to this GatewaySender.
*/
- public List<GatewayEventFilter> getGatewayEventFilters();
+ List<GatewayEventFilter> getGatewayEventFilters();
/**
* Returns the list of <code>GatewayTransportFilter</code> added to this GatewaySender.
@@ -356,7 +355,7 @@ public interface GatewaySender {
* @return the list of <code>GatewayTransportFilter</code> added to this GatewaySender.
*/
- public List<GatewayTransportFilter> getGatewayTransportFilters();
+ List<GatewayTransportFilter> getGatewayTransportFilters();
/**
* Returns isDiskSynchronous boolean property for this GatewaySender. Default value is true.
@@ -364,7 +363,7 @@ public interface GatewaySender {
* @return isDiskSynchronous boolean property for this GatewaySender
*
*/
- public boolean isDiskSynchronous();
+ boolean isDiskSynchronous();
/**
* Returns the manual start boolean property for this GatewaySender. Default is false i.e. the
@@ -375,7 +374,7 @@ public interface GatewaySender {
* @deprecated - Manual start of senders is deprecated and will be removed in a later release.
*/
@Deprecated
- public boolean isManualStart();
+ boolean isManualStart();
/**
* Returns isParallel boolean property for this GatewaySender.
@@ -383,7 +382,7 @@ public interface GatewaySender {
* @return isParallel boolean property for this GatewaySender
*
*/
- public boolean isParallel();
+ boolean isParallel();
/**
@@ -392,7 +391,7 @@ public interface GatewaySender {
*
* @return the number of dispatcher threads working for this <code>GatewaySender</code>
*/
- public int getDispatcherThreads();
+ int getDispatcherThreads();
/**
* Returns the order policy followed while dispatching the events to remote ds. Order policy is
@@ -401,9 +400,9 @@ public interface GatewaySender {
* @return the order policy followed while dispatching the events to remote ds.
*/
- public OrderPolicy getOrderPolicy();
+ OrderPolicy getOrderPolicy();
- public int getMaxParallelismForReplicatedRegion();
+ int getMaxParallelismForReplicatedRegion();
/**
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySenderFactory.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySenderFactory.java
index 5e7e49a..81cd7ab 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySenderFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewaySenderFactory.java
@@ -33,21 +33,21 @@ public interface GatewaySenderFactory {
*
* @param isParallel boolean to indicate whether distribution policy is parallel
*/
- public GatewaySenderFactory setParallel(boolean isParallel);
+ GatewaySenderFactory setParallel(boolean isParallel);
/**
* Adds a <code>GatewayEventFilter</code>
*
* @param filter GatewayEventFilter
*/
- public GatewaySenderFactory addGatewayEventFilter(GatewayEventFilter filter);
+ GatewaySenderFactory addGatewayEventFilter(GatewayEventFilter filter);
/**
* Adds a <code>GatewayTransportFilter</code>
*
* @param filter GatewayTransportFilter
*/
- public GatewaySenderFactory addGatewayTransportFilter(GatewayTransportFilter filter);
+ GatewaySenderFactory addGatewayTransportFilter(GatewayTransportFilter filter);
/**
* Sets the buffer size in bytes of the socket connection for this <code>GatewaySender</code>. The
@@ -55,7 +55,7 @@ public interface GatewaySenderFactory {
*
* @param size The size in bytes of the socket buffer
*/
- public GatewaySenderFactory setSocketBufferSize(int size);
+ GatewaySenderFactory setSocketBufferSize(int size);
/**
* Sets the number of milliseconds to wait for a response from a <code>GatewayReceiver</code>
@@ -65,28 +65,28 @@ public interface GatewaySenderFactory {
* @param timeout number of milliseconds to wait for a response from a GatewayReceiver
* @throws IllegalArgumentException if <code>timeout</code> is less than <code>0</code>.
*/
- public GatewaySenderFactory setSocketReadTimeout(int timeout);
+ GatewaySenderFactory setSocketReadTimeout(int timeout);
/**
* Sets the disk store name for overflow or persistence
*
* @param name
*/
- public GatewaySenderFactory setDiskStoreName(String name);
+ GatewaySenderFactory setDiskStoreName(String name);
/**
* Sets the number of dispatcher thread. Default number of dispatcher threads is 5.
*
* @param numThreads
*/
- public GatewaySenderFactory setDispatcherThreads(int numThreads);
+ GatewaySenderFactory setDispatcherThreads(int numThreads);
/**
* Sets <code>OrderPolicy</code> for this GatewaySender. Default order policy is KEY.
*
* @param policy
*/
- public GatewaySenderFactory setOrderPolicy(OrderPolicy policy);
+ GatewaySenderFactory setOrderPolicy(OrderPolicy policy);
/**
* Sets the maximum amount of memory (in MB) for a <code>GatewaySender</code>'s queue. Default is
@@ -95,7 +95,7 @@ public interface GatewaySenderFactory {
* @param maxQueueMemory The maximum amount of memory (in MB) for a <code>GatewaySender</code>'s
* queue.
*/
- public GatewaySenderFactory setMaximumQueueMemory(int maxQueueMemory);
+ GatewaySenderFactory setMaximumQueueMemory(int maxQueueMemory);
/**
* Sets the batch size to be picked at the time of dispatching from a <code>GatewaySender</code>'s
@@ -104,7 +104,7 @@ public interface GatewaySenderFactory {
* @param size The size of batches sent from a <code>GatewaySender</code> to its corresponding
* <code>GatewayReceiver</code>.
*/
- public GatewaySenderFactory setBatchSize(int size);
+ GatewaySenderFactory setBatchSize(int size);
/**
* Sets a time interval in milliseconds to wait to form a batch to be dispatched from a
@@ -114,7 +114,7 @@ public interface GatewaySenderFactory {
* batch is sent from a <code>GatewaySender</code> to its corresponding
* <code>GatewayReceiver</code>.
*/
- public GatewaySenderFactory setBatchTimeInterval(int interval);
+ GatewaySenderFactory setBatchTimeInterval(int interval);
/**
* Sets whether to enable batch conflation for a <code>GatewaySender</code>'s queue. Default is
@@ -123,14 +123,14 @@ public interface GatewaySenderFactory {
* @param isConflation Whether or not to enable batch conflation for batches sent from a
* <code>GatewaySender</code> to its corresponding <code>GatewayReceiver</code>.
*/
- public GatewaySenderFactory setBatchConflationEnabled(boolean isConflation);
+ GatewaySenderFactory setBatchConflationEnabled(boolean isConflation);
/**
* Sets whether to enable persistence for a <code>GatewaySender</code>'s queue. Default is false.
*
* @param isPersistence Whether to enable persistence for a <code>GatewaySender</code>'s queue
*/
- public GatewaySenderFactory setPersistenceEnabled(boolean isPersistence);
+ GatewaySenderFactory setPersistenceEnabled(boolean isPersistence);
/**
* Sets the alert threshold in milliseconds for entries in a <code>GatewaySender</code> 's queue.
@@ -138,7 +138,7 @@ public interface GatewaySenderFactory {
*
* @param threshold the alert threshold for entries in a <code>GatewaySender</code>'s queue
*/
- public GatewaySenderFactory setAlertThreshold(int threshold);
+ GatewaySenderFactory setAlertThreshold(int threshold);
/**
* Sets the manual start boolean property for this <code>GatewaySender</code>. Default is false
@@ -148,7 +148,7 @@ public interface GatewaySenderFactory {
* @deprecated - Manual start of senders is deprecated and will be removed in a later release.
*/
@Deprecated
- public GatewaySenderFactory setManualStart(boolean start);
+ GatewaySenderFactory setManualStart(boolean start);
/**
* Sets whether or not the writing to the disk is synchronous. Default is true.
@@ -156,31 +156,30 @@ public interface GatewaySenderFactory {
* @param isSynchronous boolean if true indicates synchronous writes
*
*/
- public GatewaySenderFactory setDiskSynchronous(boolean isSynchronous);
+ GatewaySenderFactory setDiskSynchronous(boolean isSynchronous);
/**
* Removes the provided <code>GatewayEventFilter</code> from this GatewaySender.
*
* @param filter
*/
- public GatewaySenderFactory removeGatewayEventFilter(GatewayEventFilter filter);
+ GatewaySenderFactory removeGatewayEventFilter(GatewayEventFilter filter);
/**
* Removes the provided <code>GatewayTransportFilter</code> from this GatewaySender.
*
* @param filter
*/
- public GatewaySenderFactory removeGatewayTransportFilter(GatewayTransportFilter filter);
+ GatewaySenderFactory removeGatewayTransportFilter(GatewayTransportFilter filter);
- public GatewaySenderFactory setParallelFactorForReplicatedRegion(int parallel);
+ GatewaySenderFactory setParallelFactorForReplicatedRegion(int parallel);
/**
* Sets the provided <code>GatewayEventSubstitutionFilter</code> in this GatewaySenderFactory.
*
* @param filter The <code>GatewayEventSubstitutionFilter</code>
*/
- public GatewaySenderFactory setGatewayEventSubstitutionFilter(
- GatewayEventSubstitutionFilter filter);
+ GatewaySenderFactory setGatewayEventSubstitutionFilter(GatewayEventSubstitutionFilter filter);
/**
* Creates a <code>GatewaySender</code> to communicate with remote distributed system
@@ -191,6 +190,6 @@ public interface GatewaySenderFactory {
* @throws IllegalStateException If the GatewaySender creation fails during validation due to
* mismatch of attributes of GatewaySender created on other nodes with same id
*/
- public GatewaySender create(String id, int remoteDSId);
+ GatewaySender create(String id, int remoteDSId);
}
diff --git a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayTransportFilter.java b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayTransportFilter.java
index c338204..41ab475 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayTransportFilter.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/wan/GatewayTransportFilter.java
@@ -20,7 +20,7 @@ import java.io.OutputStream;
import org.apache.geode.cache.CacheCallback;
public interface GatewayTransportFilter extends CacheCallback {
- public InputStream getInputStream(InputStream stream);
+ InputStream getInputStream(InputStream stream);
- public OutputStream getOutputStream(OutputStream stream);
+ OutputStream getOutputStream(OutputStream stream);
}
--
To stop receiving notification emails like this one, please contact
prhomberg@apache.org.