Created
May 31, 2019 08:29
-
-
Save vmarcinko/7966ba956d1beb617ea0a25e1905b67f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class SmsQueueingApplication { | |
// ... | |
@Bean | |
public DefaultLockRepository lockRepository(DataSource dataSource) { | |
return new DefaultLockRepository(dataSource); | |
} | |
@Bean | |
public JdbcLockRegistry lockRegistry(LockRepository lockRepository) { | |
return new JdbcLockRegistry(lockRepository); | |
} | |
@Bean | |
public LockRegistryLeaderInitiator leaderInitiator(LockRegistry lockRegistry) { | |
return new LockRegistryLeaderInitiator(lockRegistry); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment