public MongoOptions copy ( ) { MongoOptions m = new MongoOptions ( ) ; m . connectionsPerHost = connectionsPerHost ; m . threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier ; m . maxWaitTime = maxWaitTime ; m . connectTimeout = connectTimeout ; m . socketFactory = socketFactory ; m . socketTimeout = socketTimeout ; m . socketKeepAlive = socketKeepAlive ; m . readPreference = readPreference ; m . writeConcern = writeConcern ; m . safe = safe ; m . w = w ; m . wtimeout = wtimeout ; m . fsync = fsync ; m . j = j ; m . dbDecoderFactory = dbDecoderFactory ; m . dbEncoderFactory = dbEncoderFactory ; m . description = description ; m . cursorFinalizerEnabled = cursorFinalizerEnabled ; m . alwaysUseMBeans = alwaysUseMBeans ; m . requiredReplicaSetName = requiredReplicaSetName ; return m ; }
Copy this MongoOptions instance into a new instance .