Class CosIdProxyMachineIdDistributorAutoConfiguration
java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.CosIdProxyMachineIdDistributorAutoConfiguration
@AutoConfiguration
@ConditionalOnProperty(value="cosid.machine.distributor.type",
havingValue="proxy")
public class CosIdProxyMachineIdDistributorAutoConfiguration
extends Object
CosId Spring Redis MachineIdDistributor AutoConfiguration.
-
Constructor Summary
ConstructorDescriptionCosIdProxyMachineIdDistributorAutoConfiguration
(CosIdProperties cosIdProperties) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.OkHttpClient
proxyMachineIdDistributor
(okhttp3.OkHttpClient httpClient, MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer)
-
Constructor Details
-
CosIdProxyMachineIdDistributorAutoConfiguration
-
-
Method Details
-
okHttpClient
@Bean @ConditionalOnMissingBean public okhttp3.OkHttpClient okHttpClient() -
proxyMachineIdDistributor
@Bean @ConditionalOnMissingBean public ProxyMachineIdDistributor proxyMachineIdDistributor(okhttp3.OkHttpClient httpClient, MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer)
-