Efficient way to connect to Cassandra database using Pelops client
问题 I am working on a project in which I need to use Cassandra Database . I have a sample program that will populate data into Cassandra database . I am using Pelops client for that. So now I am thinking of making a Singleton class for Cassandra database that will make a connection to Cassandra database and then I be using that instance from Singelton class into my CassandraDAO to insert into Cassandra database and retrieve the data from Cassandra database as well. Below is my Singleton class