Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a jap store configurer API to allow developer to customize the co…
…mmit wait timeout
- Loading branch information
Paul Warren
committed
Mar 16, 2018
1 parent
8e189b3
commit d00fb61
Showing
7 changed files
with
87 additions
and
22 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
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
18 changes: 18 additions & 0 deletions
18
...src/main/java/internal/org/springframework/content/jpa/config/JpaStorePropertiesImpl.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,18 @@ | ||
package internal.org.springframework.content.jpa.config; | ||
|
||
import org.springframework.content.jpa.config.JpaStoreProperties; | ||
|
||
public class JpaStorePropertiesImpl implements JpaStoreProperties { | ||
|
||
private int commitTimeout = 30; | ||
|
||
public org.springframework.content.jpa.config.JpaStoreProperties commitTimeout(int seconds) { | ||
commitTimeout = seconds; | ||
return this; | ||
} | ||
|
||
public int getCommitTimeout() { | ||
return commitTimeout; | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...-content-jpa/src/main/java/org/springframework/content/jpa/config/JpaStoreConfigurer.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,7 @@ | ||
package org.springframework.content.jpa.config; | ||
|
||
public interface JpaStoreConfigurer { | ||
|
||
void configure(JpaStoreProperties store); | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...-content-jpa/src/main/java/org/springframework/content/jpa/config/JpaStoreProperties.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,7 @@ | ||
package org.springframework.content.jpa.config; | ||
|
||
public interface JpaStoreProperties { | ||
|
||
JpaStoreProperties commitTimeout(int seconds); | ||
|
||
} |
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
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