public static IdGenerator newFlakeIdGenerator(MachineIdProvider machineIdProvider) {
        EncodingProvider encodingProvider = new FlakeEncodingProvider(machineIdProvider.getMachineId());
        return new DefaultIdGenerator(new SystemTimeProvider(), encodingProvider);
    }
public static IdGenerator newFlakeIdGenerator ( MachineIdProvider machineIdProvider ) { EncodingProvider encodingProvider = new FlakeEncodingProvider ( machineIdProvider . getMachineId ( ) ) ; return new DefaultIdGenerator ( new SystemTimeProvider ( ) , encodingProvider ) ; }
Create a Flake-based {@link IdGenerator} using the given
{@link MachineIdProvider}.

@return the {@link IdGenerator}