-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODULE: Create TX grouping sender impls.
- Loading branch information
1 parent
35b072e
commit f7c0d21
Showing
7 changed files
with
154 additions
and
13 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
36 changes: 36 additions & 0 deletions
36
...geode/cache/wan/internal/txgrouping/parallel/TxGroupingParallelGatewaySenderCreation.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,36 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
* agreements. See the NOTICE file distributed with this work for additional information regarding | ||
* copyright ownership. The ASF licenses this file to You 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 | ||
* | ||
* http://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.apache.geode.cache.wan.internal.txgrouping.parallel; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import org.apache.geode.internal.cache.InternalCache; | ||
import org.apache.geode.internal.cache.wan.GatewaySenderAttributes; | ||
import org.apache.geode.internal.cache.xmlcache.ParallelGatewaySenderCreation; | ||
|
||
public class TxGroupingParallelGatewaySenderCreation extends ParallelGatewaySenderCreation { | ||
|
||
public TxGroupingParallelGatewaySenderCreation(final @NotNull InternalCache cache, | ||
final @NotNull GatewaySenderAttributes attributes) { | ||
super(cache, attributes); | ||
} | ||
|
||
@Override | ||
public boolean mustGroupTransactionEvents() { | ||
return false; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
...che/geode/cache/wan/internal/txgrouping/parallel/TxGroupingParallelGatewaySenderImpl.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,38 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
* agreements. See the NOTICE file distributed with this work for additional information regarding | ||
* copyright ownership. The ASF licenses this file to You 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 | ||
* | ||
* http://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.apache.geode.cache.wan.internal.txgrouping.parallel; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import org.apache.geode.cache.wan.internal.parallel.ParallelGatewaySenderImpl; | ||
import org.apache.geode.internal.cache.InternalCache; | ||
import org.apache.geode.internal.cache.wan.GatewaySenderAttributes; | ||
import org.apache.geode.internal.statistics.StatisticsClock; | ||
|
||
public class TxGroupingParallelGatewaySenderImpl extends ParallelGatewaySenderImpl { | ||
|
||
public TxGroupingParallelGatewaySenderImpl(final @NotNull InternalCache cache, | ||
final @NotNull StatisticsClock clock, | ||
final @NotNull GatewaySenderAttributes attributes) { | ||
super(cache, clock, attributes); | ||
} | ||
|
||
@Override | ||
public boolean mustGroupTransactionEvents() { | ||
return true; | ||
} | ||
|
||
} |
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
36 changes: 36 additions & 0 deletions
36
...che/geode/cache/wan/internal/txgrouping/serial/TxGroupingSerialGatewaySenderCreation.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,36 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
* agreements. See the NOTICE file distributed with this work for additional information regarding | ||
* copyright ownership. The ASF licenses this file to You 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 | ||
* | ||
* http://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.apache.geode.cache.wan.internal.txgrouping.serial; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import org.apache.geode.internal.cache.InternalCache; | ||
import org.apache.geode.internal.cache.wan.GatewaySenderAttributes; | ||
import org.apache.geode.internal.cache.xmlcache.SerialGatewaySenderCreation; | ||
|
||
public class TxGroupingSerialGatewaySenderCreation extends SerialGatewaySenderCreation { | ||
|
||
public TxGroupingSerialGatewaySenderCreation(final @NotNull InternalCache cache, | ||
final @NotNull GatewaySenderAttributes attributes) { | ||
super(cache, attributes); | ||
} | ||
|
||
@Override | ||
public boolean mustGroupTransactionEvents() { | ||
return true; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
.../apache/geode/cache/wan/internal/txgrouping/serial/TxGroupingSerialGatewaySenderImpl.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,38 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
* agreements. See the NOTICE file distributed with this work for additional information regarding | ||
* copyright ownership. The ASF licenses this file to You 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 | ||
* | ||
* http://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.apache.geode.cache.wan.internal.txgrouping.serial; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import org.apache.geode.cache.wan.internal.serial.SerialGatewaySenderImpl; | ||
import org.apache.geode.internal.cache.InternalCache; | ||
import org.apache.geode.internal.cache.wan.GatewaySenderAttributes; | ||
import org.apache.geode.internal.statistics.StatisticsClock; | ||
|
||
public class TxGroupingSerialGatewaySenderImpl extends SerialGatewaySenderImpl { | ||
|
||
public TxGroupingSerialGatewaySenderImpl(final @NotNull InternalCache cache, | ||
final @NotNull StatisticsClock clock, | ||
final @NotNull GatewaySenderAttributes attributes) { | ||
super(cache, clock, attributes); | ||
} | ||
|
||
@Override | ||
public boolean mustGroupTransactionEvents() { | ||
return true; | ||
} | ||
|
||
} |
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