Class CosIdMachineAutoConfiguration
java.lang.Object
me.ahoo.cosid.spring.boot.starter.machine.CosIdMachineAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(MachineProperties.class)
public class CosIdMachineAutoConfiguration
extends Object
-
Constructor Summary
ConstructorDescriptionCosIdMachineAutoConfiguration
(CosIdProperties cosIdProperties, MachineProperties machineProperties) -
Method Summary
Modifier and TypeMethodDescriptioncosIdLifecycleMachineIdDistributor
(InstanceId instanceId, MachineIdDistributor machineIdDistributor) cosIdLifecycleMachineIdGuarder
(InstanceId instanceId, MachineIdGuarder machineIdGuarder) instanceId
(HostAddressSupplier hostAddressSupplier) machineId
(MachineIdDistributor machineIdDistributor, InstanceId instanceId) machineIdDistributor
(MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer) machineIdGuarder
(MachineIdDistributor machineIdDistributor) statefulSetMachineIdDistributor
(MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer)
-
Constructor Details
-
CosIdMachineAutoConfiguration
public CosIdMachineAutoConfiguration(CosIdProperties cosIdProperties, MachineProperties machineProperties)
-
-
Method Details
-
instanceId
@Bean @ConditionalOnMissingBean public InstanceId instanceId(HostAddressSupplier hostAddressSupplier) -
machineId
@Bean @ConditionalOnMissingBean(MachineId.class) public MachineId machineId(MachineIdDistributor machineIdDistributor, InstanceId instanceId) -
machineStateStorage
-
clockBackwardsSynchronizer
-
machineIdDistributor
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="cosid.machine.distributor.type", matchIfMissing=true, havingValue="manual") public ManualMachineIdDistributor machineIdDistributor(MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer) -
statefulSetMachineIdDistributor
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="cosid.machine.distributor.type", havingValue="stateful_set") public StatefulSetMachineIdDistributor statefulSetMachineIdDistributor(MachineStateStorage localMachineState, ClockBackwardsSynchronizer clockBackwardsSynchronizer) -
cosIdLifecycleMachineIdDistributor
@Bean @ConditionalOnMissingBean public CosIdLifecycleMachineIdDistributor cosIdLifecycleMachineIdDistributor(InstanceId instanceId, MachineIdDistributor machineIdDistributor) -
machineIdGuarder
@Bean @ConditionalOnMissingBean public MachineIdGuarder machineIdGuarder(MachineIdDistributor machineIdDistributor) -
cosIdLifecycleMachineIdGuarder
@Bean @ConditionalOnMissingBean public CosIdLifecycleMachineIdGuarder cosIdLifecycleMachineIdGuarder(InstanceId instanceId, MachineIdGuarder machineIdGuarder)
-