Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

private static client

1 reply [Last post]
  • Login or register to post comments
Tue, 06/19/2012 - 09:56
testarc
Offline
Joined: 05/08/2012
Groups: None

Hello all,
I designed a public static CouchbaseConnection class which has a public static field client and client is created in constructor. Does this approach lead to any problem ?

Top
  • Login or register to post comments
Tue, 06/19/2012 - 17:26
mikew
Offline
Joined: 03/14/2011
Groups:

I don't think it will cause problems in the client, but it may in your application. For example if you create two clients with the same ConnectionFactory then you probably will not have shut the client down correctly. Can you provide a use case for what you are trying to accomplish by doing this?

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker