Class DefaultMongoClientFactory

  • All Implemented Interfaces:
    MongoClientFactory

    @Internal
    public final class DefaultMongoClientFactory
    extends java.lang.Object
    implements MongoClientFactory
    The default MongoClientFactory implementation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.mongodb.client.MongoClient create()  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMongoClientFactory

        public DefaultMongoClientFactory​(MongoConfig config)
        Create a new instance of MongoClientFactory
        Parameters:
        config - the MongoConfig
    • Method Detail

      • create

        public com.mongodb.client.MongoClient create()
        Specified by:
        create in interface MongoClientFactory
        Returns:
        create a new instance of a MongoClient.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object