-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move spring-integration-hazelcast from extensions
* Update javadocs * Upgrade from log4j to log4j2 * Remove unnecessary test deps. * Change from implmementation to api * Remove unneeded test deps. * Fix HZ XSD to be "versionless" * Use `com.google.code.findbugs:annotations` dep to avoid warning from HZ code base
- Loading branch information
1 parent
040438f
commit a322f5c
Showing
83 changed files
with
9,032 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
...ion-hazelcast/src/main/java/org/springframework/integration/hazelcast/CacheEventType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.springframework.integration.hazelcast; | ||
|
||
/** | ||
* Enumeration of Cache Event Types. | ||
* | ||
* @author Eren Avsarogullari | ||
* @author Artem Bilan | ||
* | ||
* @since 6.0 | ||
* | ||
* @see org.springframework.integration.hazelcast.inbound.AbstractHazelcastMessageProducer | ||
*/ | ||
public enum CacheEventType { | ||
|
||
/** | ||
* The Hazelcast ADDED event. | ||
*/ | ||
ADDED, | ||
|
||
/** | ||
* The Hazelcast REMOVED event. | ||
*/ | ||
REMOVED, | ||
|
||
/** | ||
* The Hazelcast UPDATED event. | ||
*/ | ||
UPDATED, | ||
|
||
/** | ||
* The Hazelcast EVICTED event. | ||
*/ | ||
EVICTED, | ||
|
||
/** | ||
* The Hazelcast EXPIRED event. | ||
*/ | ||
EXPIRED, | ||
|
||
/** | ||
* The Hazelcast EVICT_ALL event. | ||
*/ | ||
EVICT_ALL, | ||
|
||
/** | ||
* The Hazelcast CLEAR_ALL event. | ||
*/ | ||
CLEAR_ALL | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...ast/src/main/java/org/springframework/integration/hazelcast/CacheListeningPolicyType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.springframework.integration.hazelcast; | ||
|
||
/** | ||
* Enumeration of Cache Listening Policy Type. | ||
* | ||
* @author Eren Avsarogullari | ||
* @author Artem Bilan | ||
* | ||
* @since 6.0 | ||
* | ||
* @see org.springframework.integration.hazelcast.inbound.AbstractHazelcastMessageProducer | ||
*/ | ||
public enum CacheListeningPolicyType { | ||
|
||
/** | ||
* Only the local Hazelcast node can accept event. | ||
*/ | ||
SINGLE, | ||
|
||
/** | ||
* All subscribed members can accept event. | ||
*/ | ||
ALL | ||
|
||
} |
58 changes: 58 additions & 0 deletions
58
...hazelcast/src/main/java/org/springframework/integration/hazelcast/ClusterMonitorType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.springframework.integration.hazelcast; | ||
|
||
/** | ||
* Enumeration of Hazelcast Cluster Monitor Types. | ||
* | ||
* @author Eren Avsarogullari | ||
* @author Artem Bilan | ||
* | ||
* @since 6.0 | ||
* | ||
* @see org.springframework.integration.hazelcast.inbound.HazelcastClusterMonitorMessageProducer | ||
* @see com.hazelcast.core.DistributedObjectListener | ||
* @see com.hazelcast.core.LifecycleListener | ||
*/ | ||
public enum ClusterMonitorType { | ||
|
||
/** | ||
* The membership listener mode. | ||
*/ | ||
MEMBERSHIP, | ||
|
||
/** | ||
* The distributed object listener mode. | ||
*/ | ||
DISTRIBUTED_OBJECT, | ||
|
||
/** | ||
* The migration listener mode. | ||
*/ | ||
MIGRATION, | ||
|
||
/** | ||
* The listener listener mode. | ||
*/ | ||
LIFECYCLE, | ||
|
||
/** | ||
* The client listener mode. | ||
*/ | ||
CLIENT | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
.../src/main/java/org/springframework/integration/hazelcast/DistributedSQLIterationType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.springframework.integration.hazelcast; | ||
|
||
/** | ||
* Enumeration of Distributed SQL Iteration Type. | ||
* | ||
* @author Eren Avsarogullari | ||
* @author Artem Bilan | ||
* | ||
* @since 6.0 | ||
* | ||
* @see org.springframework.integration.hazelcast.inbound.HazelcastDistributedSQLMessageSource | ||
* @see com.hazelcast.map.IMap | ||
*/ | ||
public enum DistributedSQLIterationType { | ||
|
||
/** | ||
* The {@link com.hazelcast.map.IMap#entrySet()} to iterate. | ||
*/ | ||
ENTRY, | ||
|
||
/** | ||
* The {@link com.hazelcast.map.IMap#keySet()} to iterate. | ||
*/ | ||
KEY, | ||
|
||
/** | ||
* The {@link com.hazelcast.map.IMap#localKeySet()} to iterate. | ||
*/ | ||
LOCAL_KEY, | ||
|
||
/** | ||
* The {@link com.hazelcast.map.IMap#values()} to iterate. | ||
*/ | ||
VALUE | ||
|
||
} |
51 changes: 51 additions & 0 deletions
51
...n-hazelcast/src/main/java/org/springframework/integration/hazelcast/HazelcastHeaders.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.springframework.integration.hazelcast; | ||
|
||
/** | ||
* Hazelcast Message Headers. | ||
* | ||
* @author Eren Avsarogullari | ||
* @author Artem Bilan | ||
* | ||
* @since 6.0 | ||
*/ | ||
public abstract class HazelcastHeaders { | ||
|
||
private static final String PREFIX = "hazelcast_"; | ||
|
||
/** | ||
* The event type header name. | ||
*/ | ||
public static final String EVENT_TYPE = PREFIX + "eventType"; | ||
|
||
/** | ||
* The member header name. | ||
*/ | ||
public static final String MEMBER = PREFIX + "member"; | ||
|
||
/** | ||
* The cache name header name. | ||
*/ | ||
public static final String CACHE_NAME = PREFIX + "cacheName"; | ||
|
||
/** | ||
* The publishing time header name. | ||
*/ | ||
public static final String PUBLISHING_TIME = PREFIX + "publishingTime"; | ||
|
||
} |
Oops, something went wrong.