DATACOUCH-52 - Shut down CouchbaseClient bean when the context is destroyed.
The shutdown method will be called on the bean when the context is closed to make sure that "no thread is left behind" running.
This commit is contained in:
@@ -48,7 +48,7 @@ public abstract class AbstractCouchbaseConfiguration {
|
|||||||
*
|
*
|
||||||
* @throws Exception on Bean construction failure.
|
* @throws Exception on Bean construction failure.
|
||||||
*/
|
*/
|
||||||
@Bean
|
@Bean(destroyMethod = "shutdown")
|
||||||
public abstract CouchbaseClient couchbaseClient() throws Exception;
|
public abstract CouchbaseClient couchbaseClient() throws Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user