All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aol.micro.server.couchbase.distributed.locking.DistributedLockServiceConfiguration Maven / Gradle / Ivy

There is a newer version: 0.91.11
Show newest version
package com.aol.micro.server.couchbase.distributed.locking;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.aol.micro.server.utility.DistributedLockService;

@Configuration
public class DistributedLockServiceConfiguration {

	@Value("${key.timeout.in.seconds:120}")
	private int keyTimeoutInSeconds;

	@Bean
	public DistributedLockService distributedLockService() {
		return new DistributedLockServiceCouchbaseImpl(keyTimeoutInSeconds);

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy