Klasse MorphiumConfig

java.lang.Object
de.caluga.morphium.MorphiumConfig

public class MorphiumConfig extends Object
Stores the configuration for the MongoDBLayer.
Autor:
stephan
  • Konstruktordetails

    • MorphiumConfig

      public MorphiumConfig(Properties prop)
    • MorphiumConfig

      public MorphiumConfig(String prefix, Properties prop)
    • MorphiumConfig

      public MorphiumConfig(String prefix, MorphiumConfigResolver resolver)
    • MorphiumConfig

      public MorphiumConfig()
    • MorphiumConfig

      public MorphiumConfig(String db, int maxConnections, int globalCacheValidTime, int housekeepingTimeout)
  • Methodendetails

    • messagingSettings

      public MessagingSettings messagingSettings()
    • collectionCheckSettings

      public CollectionCheckSettings collectionCheckSettings()
    • encryptionSettings

      public EncryptionSettings encryptionSettings()
    • objectMappingSettings

      public ObjectMappingSettings objectMappingSettings()
    • threadPoolSettings

      public ThreadPoolSettings threadPoolSettings()
    • writerSettings

      public WriterSettings writerSettings()
    • cacheSettings

      public CacheSettings cacheSettings()
    • connectionSettings

      public ConnectionSettings connectionSettings()
    • driverSettings

      public DriverSettings driverSettings()
    • authSettings

      public AuthSettings authSettings()
    • clusterSettings

      public ClusterSettings clusterSettings()
    • isMessagingStatusInfoListenerEnabled

      @Deprecated public boolean isMessagingStatusInfoListenerEnabled()
      Veraltet.
      use messagingSettings
    • setMessagingStatusInfoListenerEnabled

      @Deprecated public MorphiumConfig setMessagingStatusInfoListenerEnabled(boolean messagingStatusInfoListenerEnabled)
      Veraltet.
      use messagingSettings
    • getMessagingStatusInfoListenerName

      @Deprecated public String getMessagingStatusInfoListenerName()
      Veraltet.
      use messagingSettings
    • setMessagingStatusInfoListenerName

      @Deprecated public MorphiumConfig setMessagingStatusInfoListenerName(String name)
      Veraltet.
      use messagingSettings
    • getPropertyNames

      public static List<String> getPropertyNames(String prefix)
    • createFromJson

    • getMessagingWindowSize

      @Deprecated public int getMessagingWindowSize()
      Veraltet.
      use messagingSettings
    • setMessagingWindowSize

      @Deprecated public void setMessagingWindowSize(int messagingWindowSize)
      Veraltet.
      use messagingSettings
    • fromProperties

      public static MorphiumConfig fromProperties(String prefix, Properties p)
    • fromProperties

      public static MorphiumConfig fromProperties(Properties p)
    • isReplicaset

      @Deprecated public boolean isReplicaset()
      Veraltet.
      use ConnectionSettings
    • getCompressionType

      @Deprecated public MorphiumConfig.CompressionType getCompressionType()
      Veraltet.
      use driverSettings
    • setCompressionType

      Veraltet.
      use driverSettings
    • setReplicasetMonitoring

      @Deprecated public MorphiumConfig setReplicasetMonitoring(boolean replicaset)
      Veraltet.
      use ConnectionSettings
    • getValueEncryptionProviderClass

      @Deprecated public Class<? extends ValueEncryptionProvider> getValueEncryptionProviderClass()
      Veraltet.
      use encryptionSettings
    • setValueEncryptionProviderClass

      @Deprecated public MorphiumConfig setValueEncryptionProviderClass(Class<? extends ValueEncryptionProvider> valueEncryptionProviderClass)
      Veraltet.
      use encryptionSettings
    • getEncryptionKeyProviderClass

      @Deprecated public Class<? extends EncryptionKeyProvider> getEncryptionKeyProviderClass()
      Veraltet.
      use encryptionSettings
    • setEncryptionKeyProviderClass

      @Deprecated public MorphiumConfig setEncryptionKeyProviderClass(Class<? extends EncryptionKeyProvider> encryptionKeyProviderClass)
      Veraltet.
      use encryptionSettings
    • getCredentialsEncryptionKey

      @Deprecated public String getCredentialsEncryptionKey()
      Veraltet.
      use encryptionSettings
    • setCredentialsEncryptionKey

      @Deprecated public MorphiumConfig setCredentialsEncryptionKey(String credentialsEncryptionKey)
      Veraltet.
      use encryptionSettings
    • getCredentialsDecryptionKey

      @Deprecated public String getCredentialsDecryptionKey()
      Veraltet.
      use encryptionSettings
    • setCredentialsDecryptionKey

      @Deprecated public MorphiumConfig setCredentialsDecryptionKey(String credentialsDecryptionKey)
      Veraltet.
      use encryptionSettings
    • getDriverName

      @Deprecated public String getDriverName()
      Veraltet.
      use driverSettings
    • setDriverName

      @Deprecated public MorphiumConfig setDriverName(String driverName)
      Veraltet.
      use driverSettings
    • isAutoIndexAndCappedCreationOnWrite

      public boolean isAutoIndexAndCappedCreationOnWrite()
      use collectionCheckSettings
    • setAutoIndexAndCappedCreationOnWrite

      public MorphiumConfig setAutoIndexAndCappedCreationOnWrite(boolean autoIndexAndCappedCreationOnWrite)
      use collectionCheckSettings
    • isWarnOnNoEntitySerialization

      @Deprecated public boolean isWarnOnNoEntitySerialization()
      Veraltet.
      use ObjectMappingSettings
    • setWarnOnNoEntitySerialization

      @Deprecated public MorphiumConfig setWarnOnNoEntitySerialization(boolean warnOnNoEntitySerialization)
      Veraltet.
      use ObjectMappingSettings
    • isCheckForNew

      @Deprecated public boolean isCheckForNew()
      Veraltet.
      use ObjectMappingSettings
    • setCheckForNew

      @Deprecated public MorphiumConfig setCheckForNew(boolean checkForNew)
      Veraltet.
      if set to false, all checks if an entity is new when CreationTime is used is switched off if set to true, only those, whose CreationTime settings use checkfornew will work default false
      Parameter:
      checkForNew - boolean, check if object is really not stored yet use ObjectMappingSettings
    • getRetriesOnNetworkError

      @Deprecated public int getRetriesOnNetworkError()
      Veraltet.
      use ConnectionSettings
    • setRetriesOnNetworkError

      @Deprecated public MorphiumConfig setRetriesOnNetworkError(int retriesOnNetworkError)
      Veraltet.
      use ConnectionSettings
    • getSleepBetweenNetworkErrorRetries

      @Deprecated public int getSleepBetweenNetworkErrorRetries()
      Veraltet.
      use ConnectionSettings
    • setSleepBetweenNetworkErrorRetries

      @Deprecated public MorphiumConfig setSleepBetweenNetworkErrorRetries(int sleepBetweenNetworkErrorRetries)
      Veraltet.
      use ConnectionSettings
    • getWriteBufferTimeGranularity

      @Deprecated public int getWriteBufferTimeGranularity()
      Veraltet.
      use writerSettings
    • setWriteBufferTimeGranularity

      @Deprecated public MorphiumConfig setWriteBufferTimeGranularity(int writeBufferTimeGranularity)
      Veraltet.
      use writerSettings
    • getCache

      @Deprecated public MorphiumCache getCache()
      Veraltet.
      use CacheSettings
    • setCache

      @Deprecated public MorphiumConfig setCache(MorphiumCache cache)
      Veraltet.
      use CacheSettings
    • getWriteBufferTime

      @Deprecated public int getWriteBufferTime()
      Veraltet.
      use writerSettings
    • setWriteBufferTime

      @Deprecated public MorphiumConfig setWriteBufferTime(int writeBufferTime)
      Veraltet.
      use writerSettings
    • getBufferedWriter

      @Deprecated public MorphiumWriter getBufferedWriter()
      Veraltet.
      use writerSettings
    • setBufferedWriter

      @Deprecated public MorphiumConfig setBufferedWriter(MorphiumWriter bufferedWriter)
      Veraltet.
      use writerSettings
    • getWriter

      @Deprecated public MorphiumWriter getWriter()
      Veraltet.
      use writerSettings
    • setWriter

      @Deprecated public MorphiumConfig setWriter(MorphiumWriter writer)
      Veraltet.
      use writerSettings
    • getConnectionTimeout

      @Deprecated public int getConnectionTimeout()
      Veraltet.
      use ConnectionSettings
    • setConnectionTimeout

      @Deprecated public MorphiumConfig setConnectionTimeout(int connectionTimeout)
      Veraltet.
      use ConnectionSettings
    • getMaxWaitTime

      @Deprecated public int getMaxWaitTime()
      Veraltet.
      use ConnectionSettings
    • setMaxWaitTime

      @Deprecated public MorphiumConfig setMaxWaitTime(int maxWaitTime)
      Veraltet.
      use ConnectionSettings
    • getServerSelectionTimeout

      @Deprecated public int getServerSelectionTimeout()
      Veraltet.
      use driverSettings
    • setServerSelectionTimeout

      @Deprecated public MorphiumConfig setServerSelectionTimeout(int serverSelectionTimeout)
      Veraltet.
      use driverSettings
    • getCredentialsEncrypted

      @Deprecated public Boolean getCredentialsEncrypted()
      Veraltet.
      use encryptionSettings
    • setCredentialsEncrypted

      @Deprecated public MorphiumConfig setCredentialsEncrypted(Boolean credentialsEncrypted)
      Veraltet.
      use encryptionSettings
    • getMongoAuthDb

      @Deprecated public String getMongoAuthDb()
      Veraltet.
      use driverSettings
    • setMongoAuthDb

      @Deprecated public MorphiumConfig setMongoAuthDb(String mongoAuthDb)
      Veraltet.
      use driverSettings
    • getMongoLogin

      @Deprecated public String getMongoLogin()
      Veraltet.
      use driverSettings
    • setMongoLogin

      @Deprecated public MorphiumConfig setMongoLogin(String mongoLogin)
      Veraltet.
      use driverSettings
    • getMongoPassword

      @Deprecated public String getMongoPassword()
      Veraltet.
      use driverSettings
    • setMongoPassword

      @Deprecated public MorphiumConfig setMongoPassword(String mongoPassword)
      Veraltet.
      use driverSettings
    • getDefaultReadPreference

      @Deprecated public ReadPreference getDefaultReadPreference()
      Veraltet.
      use driverSettings
    • setDefaultReadPreference

      @Deprecated public MorphiumConfig setDefaultReadPreference(ReadPreference defaultReadPreference)
      Veraltet.
      use driverSettings
    • getDefaultReadPreferenceType

      @Deprecated public String getDefaultReadPreferenceType()
      Veraltet.
      use driverSettings
    • setDefaultReadPreferenceType

      @Deprecated public MorphiumConfig setDefaultReadPreferenceType(String stringDefaultReadPreference)
      Veraltet.
      use driverSettings
    • getWriteCacheTimeout

      @Deprecated public int getWriteCacheTimeout()
      Veraltet.
      use CacheSettings
    • setWriteCacheTimeout

      @Deprecated public MorphiumConfig setWriteCacheTimeout(int writeCacheTimeout)
      Veraltet.
      use CacheSettings
    • setHostSeed

      @Deprecated public MorphiumConfig setHostSeed(List<String> str)
      Veraltet.
      setting hosts as Host:Port
      Parameter:
      str - list of hosts, with or without port
    • setHostSeed

      @Deprecated public MorphiumConfig setHostSeed(List<String> str, List<Integer> ports)
      Veraltet.
    • getHostSeed

      @Deprecated public List<String> getHostSeed()
      Veraltet.
    • setHostSeed

      @Deprecated public MorphiumConfig setHostSeed(String... hostPorts)
      Veraltet.
    • setHostSeed

      @Deprecated public MorphiumConfig setHostSeed(String hostPorts)
      Veraltet.
    • setHostSeed

      @Deprecated public MorphiumConfig setHostSeed(String hosts, String ports)
      Veraltet.
    • addHostToSeed

      @Deprecated public MorphiumConfig addHostToSeed(String host, int port)
      Veraltet.
    • addHostToSeed

      @Deprecated public MorphiumConfig addHostToSeed(String host)
      Veraltet.
    • getMaxConnections

      @Deprecated public int getMaxConnections()
      Veraltet.
    • setMaxConnections

      @Deprecated public MorphiumConfig setMaxConnections(int maxConnections)
      Veraltet.
    • getDatabase

      @Deprecated public String getDatabase()
      Veraltet.
    • setDatabase

      @Deprecated public MorphiumConfig setDatabase(String database)
      Veraltet.
    • getHousekeepingTimeout

      @Deprecated public int getHousekeepingTimeout()
      Veraltet.
    • setHousekeepingTimeout

      @Deprecated public MorphiumConfig setHousekeepingTimeout(int housekeepingTimeout)
      Veraltet.
    • getGlobalCacheValidTime

      @Deprecated public int getGlobalCacheValidTime()
      Veraltet.
      for future use - set Global Caching time
      Gibt zurück:
      the global cache valid time
    • setGlobalCacheValidTime

      @Deprecated public MorphiumConfig setGlobalCacheValidTime(int globalCacheValidTime)
      Veraltet.
    • toString

      public String toString()
      returns json representation of this object containing all values
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      json string
    • setThreadConnectionMultiplier

      @Deprecated public MorphiumConfig setThreadConnectionMultiplier(int mp)
      Veraltet.
      use writerSettings
    • getThreadConnectionMultiplier

      @Deprecated public int getThreadConnectionMultiplier()
      Veraltet.
      use writerSettings
    • getAsyncWriter

      @Deprecated public MorphiumWriter getAsyncWriter()
      Veraltet.
      use writerSettings
    • setAsyncWriter

      @Deprecated public MorphiumConfig setAsyncWriter(MorphiumWriter asyncWriter)
      Veraltet.
      use writerSettings
    • getMaximumRetriesBufferedWriter

      @Deprecated public int getMaximumRetriesBufferedWriter()
      Veraltet.
      use writerSettings
    • setMaximumRetriesBufferedWriter

      @Deprecated public MorphiumConfig setMaximumRetriesBufferedWriter(int maximumRetriesBufferedWriter)
      Veraltet.
      use writerSettings
    • getMaximumRetriesWriter

      @Deprecated public int getMaximumRetriesWriter()
      Veraltet.
      use writerSettings
    • setMaximumRetriesWriter

      @Deprecated public MorphiumConfig setMaximumRetriesWriter(int maximumRetriesWriter)
      Veraltet.
      use writerSettings
    • getMaximumRetriesAsyncWriter

      @Deprecated public int getMaximumRetriesAsyncWriter()
      Veraltet.
      use writerSettings
    • setMaximumRetriesAsyncWriter

      @Deprecated public MorphiumConfig setMaximumRetriesAsyncWriter(int maximumRetriesAsyncWriter)
      Veraltet.
      use writerSettings
    • getRetryWaitTimeBufferedWriter

      @Deprecated public int getRetryWaitTimeBufferedWriter()
      Veraltet.
      use writerSettings
    • setRetryWaitTimeBufferedWriter

      @Deprecated public MorphiumConfig setRetryWaitTimeBufferedWriter(int retryWaitTimeBufferedWriter)
      Veraltet.
      use writerSettings
    • getRetryWaitTimeWriter

      @Deprecated public int getRetryWaitTimeWriter()
      Veraltet.
      use writerSettings
    • setRetryWaitTimeWriter

      @Deprecated public MorphiumConfig setRetryWaitTimeWriter(int retryWaitTimeWriter)
      Veraltet.
      use writerSettings
    • getRetryWaitTimeAsyncWriter

      @Deprecated public int getRetryWaitTimeAsyncWriter()
      Veraltet.
      use writerSettings
    • setRetryWaitTimeAsyncWriter

      @Deprecated public MorphiumConfig setRetryWaitTimeAsyncWriter(int retryWaitTimeAsyncWriter)
      Veraltet.
      use writerSettings
    • asProperties

      public Properties asProperties()
      returns a property set only containing non-default values set
      Gibt zurück:
      properties
    • createCopy

      public MorphiumConfig createCopy()
    • asProperties

      @Deprecated public Properties asProperties(String prefix, boolean effectiveConfig)
      Veraltet.
      Parameter:
      prefix - prefix to use in property keys
      effectiveConfig - when true, use the current effective config, including overrides from Environment
      Gibt zurück:
      the properties
    • asProperties

      public Properties asProperties(String prefix, Settings setting)
    • getSettingByType

      protected <T extends Settings> T getSettingByType(Class cls)
    • createCopyOf

      public <T extends Settings> T createCopyOf(T setting)
    • asProperties

      public Properties asProperties(String prefix)
    • equals

      public boolean equals(Object other)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • isReadCacheEnabled

      @Deprecated public boolean isReadCacheEnabled()
      Veraltet.
      use CacheSettings
    • setReadCacheEnabled

      @Deprecated public MorphiumConfig setReadCacheEnabled(boolean readCacheEnabled)
      Veraltet.
      use CacheSettings
    • disableReadCache

      @Deprecated public MorphiumConfig disableReadCache()
      Veraltet.
      use CacheSettings
    • enableReadCache

      @Deprecated public MorphiumConfig enableReadCache()
      Veraltet.
      use CacheSettings
    • isAsyncWritesEnabled

      @Deprecated public boolean isAsyncWritesEnabled()
      Veraltet.
      use CacheSettings
    • setAsyncWritesEnabled

      @Deprecated public MorphiumConfig setAsyncWritesEnabled(boolean asyncWritesEnabled)
      Veraltet.
      use CacheSettings
    • disableAsyncWrites

      @Deprecated public MorphiumConfig disableAsyncWrites()
      Veraltet.
      use CacheSettings
    • enableAsyncWrites

      @Deprecated public MorphiumConfig enableAsyncWrites()
      Veraltet.
      use CacheSettings
    • isBufferedWritesEnabled

      @Deprecated public boolean isBufferedWritesEnabled()
      Veraltet.
      use CacheSettings
    • setBufferedWritesEnabled

      @Deprecated public MorphiumConfig setBufferedWritesEnabled(boolean bufferedWritesEnabled)
      Veraltet.
      use CacheSettings
    • disableBufferedWrites

      @Deprecated public MorphiumConfig disableBufferedWrites()
      Veraltet.
      use CacheSettings
    • enableBufferedWrites

      @Deprecated public MorphiumConfig enableBufferedWrites()
      Veraltet.
      use CacheSettings
    • isAutoValuesEnabled

      @Deprecated public boolean isAutoValuesEnabled()
      Veraltet.
      use ObjectMappingSettings
    • setAutoValuesEnabled

      @Deprecated public MorphiumConfig setAutoValuesEnabled(boolean enabled)
      Veraltet.
      use ObjectMappingSettings
    • enableAutoValues

      @Deprecated public MorphiumConfig enableAutoValues()
      Veraltet.
      use ObjectMappingSettings
    • disableAutoValues

      @Deprecated public MorphiumConfig disableAutoValues()
      Veraltet.
      use ObjectMappingSettings
    • isCamelCaseConversionEnabled

      @Deprecated public boolean isCamelCaseConversionEnabled()
      Veraltet.
      use ObjectMappingSettings
    • setCamelCaseConversionEnabled

      @Deprecated public MorphiumConfig setCamelCaseConversionEnabled(boolean camelCaseConversionEnabled)
      Veraltet.
      use ObjectMappingSettings
    • getThreadPoolMessagingCoreSize

      @Deprecated public int getThreadPoolMessagingCoreSize()
      Veraltet.
      use messagingSettings
    • setThreadPoolMessagingCoreSize

      @Deprecated public MorphiumConfig setThreadPoolMessagingCoreSize(int threadPoolMessagingCoreSize)
      Veraltet.
      use messagingSettings
    • getThreadPoolMessagingMaxSize

      @Deprecated public int getThreadPoolMessagingMaxSize()
      Veraltet.
      use messagingSettings
    • setThreadPoolMessagingMaxSize

      @Deprecated public MorphiumConfig setThreadPoolMessagingMaxSize(int threadPoolMessagingMaxSize)
      Veraltet.
      use messagingSettings
    • getThreadPoolMessagingKeepAliveTime

      @Deprecated public long getThreadPoolMessagingKeepAliveTime()
      Veraltet.
      use messagingSettings
    • setThreadPoolMessagingKeepAliveTime

      @Deprecated public MorphiumConfig setThreadPoolMessagingKeepAliveTime(long threadPoolMessagingKeepAliveTime)
      Veraltet.
      use messagingSettings
    • getThreadPoolAsyncOpCoreSize

      @Deprecated public int getThreadPoolAsyncOpCoreSize()
      Veraltet.
      use threadPoolSettings
    • setThreadPoolAsyncOpCoreSize

      @Deprecated public MorphiumConfig setThreadPoolAsyncOpCoreSize(int threadPoolAsyncOpCoreSize)
      Veraltet.
      use threadPoolSettings
    • getThreadPoolAsyncOpMaxSize

      @Deprecated public int getThreadPoolAsyncOpMaxSize()
      Veraltet.
      use threadPoolSettings
    • setThreadPoolAsyncOpMaxSize

      @Deprecated public MorphiumConfig setThreadPoolAsyncOpMaxSize(int threadPoolAsyncOpMaxSize)
      Veraltet.
      use threadPoolSettings
    • getThreadPoolAsyncOpKeepAliveTime

      @Deprecated public long getThreadPoolAsyncOpKeepAliveTime()
      Veraltet.
      use threadPoolSettings
    • setThreadPoolAsyncOpKeepAliveTime

      @Deprecated public MorphiumConfig setThreadPoolAsyncOpKeepAliveTime(long threadPoolAsyncOpKeepAliveTime)
      Veraltet.
      use threadPoolSettings
    • isObjectSerializationEnabled

      @Deprecated public boolean isObjectSerializationEnabled()
      Veraltet.
      use ObjectMappingSettings
    • setObjectSerializationEnabled

      @Deprecated public MorphiumConfig setObjectSerializationEnabled(boolean objectSerializationEnabled)
      Veraltet.
      use ObjectMappingSettings
    • getHeartbeatFrequency

      @Deprecated public int getHeartbeatFrequency()
      Veraltet.
    • setHeartbeatFrequency

      @Deprecated public MorphiumConfig setHeartbeatFrequency(int heartbeatFrequency)
      Veraltet.
    • setMinConnections

      @Deprecated public MorphiumConfig setMinConnections(int minConnections)
      Veraltet.
      use ConnectionSettings
    • getLocalThreshold

      @Deprecated public int getLocalThreshold()
      Veraltet.
    • setLocalThreshold

      @Deprecated public MorphiumConfig setLocalThreshold(int localThreshold)
      Veraltet.

      Sets the local threshold. When choosing among multiple MongoDB servers to send a request, the MongoClient will only send that request to a server whose ping time is less than or equal to the server with the fastest ping time plus the local threshold.

      For example, let's say that the client is choosing a server to send a query when the read preference is ReadPreference.secondary(), and that there are three secondaries, server1, server2, and server3, whose ping times are 10, 15, and 16 milliseconds, respectively. With a local threshold of 5 milliseconds, the client will send the query to either server1 or server2 (randomly selecting between the two).

      Default is 15 milliseconds.

      Gibt zurück:
      the local threshold, in milliseconds
      Seit:
      2.13.0
    • getMaxConnectionIdleTime

      @Deprecated public int getMaxConnectionIdleTime()
      Veraltet.
    • setMaxConnectionIdleTime

      @Deprecated public MorphiumConfig setMaxConnectionIdleTime(int maxConnectionIdleTime)
      Veraltet.
    • getMaxConnectionLifeTime

      @Deprecated public int getMaxConnectionLifeTime()
      Veraltet.
    • setMaxConnectionLifeTime

      @Deprecated public MorphiumConfig setMaxConnectionLifeTime(int maxConnectionLifeTime)
      Veraltet.
    • getRequiredReplicaSetName

      @Deprecated public String getRequiredReplicaSetName()
      Veraltet.
      use ConnectionSettings
    • setRequiredReplicaSetName

      @Deprecated public MorphiumConfig setRequiredReplicaSetName(String requiredReplicaSetName)
      Veraltet.
      use ConnectionSettings
    • getCursorBatchSize

      public int getCursorBatchSize()
    • setCursorBatchSize

      public MorphiumConfig setCursorBatchSize(int cursorBatchSize)
    • getReadTimeout

      @Deprecated public int getReadTimeout()
      Veraltet.
    • setReadTimeout

      @Deprecated public MorphiumConfig setReadTimeout(int readTimeout)
      Veraltet.
    • isRetryReads

      @Deprecated public boolean isRetryReads()
      Veraltet.
    • setRetryReads

      @Deprecated public void setRetryReads(boolean retryReads)
      Veraltet.
    • isRetryWrites

      @Deprecated public boolean isRetryWrites()
      Veraltet.
    • setRetryWrites

      @Deprecated public void setRetryWrites(boolean retryWrites)
      Veraltet.
    • getUuidRepresentation

      @Deprecated public String getUuidRepresentation()
      Veraltet.
    • setUuidRepresentation

      public void setUuidRepresentation(String uuidRepresentation)
      Sets the UUID representation to use when encoding instances of UUID and when decoding BSON binary values with subtype of 3.

      The default is UNSPECIFIED, If your application stores UUID values in MongoDB, you must set this value to the desired representation. New applications should prefer STANDARD, while existing Java applications should prefer JAVA_LEGACY. Applications wishing to interoperate with existing Python or .NET applications should prefer PYTHON_LEGACY or C_SHARP_LEGACY, respectively. Applications that do not store UUID values in MongoDB don't need to set this value.

      Parameter:
      uuidRepresentation - the UUID representation
      Seit:
      3.12
    • getIndexCheck

      Veraltet.
      use collectionCheckSettings
    • setIndexCheck

      @Deprecated public void setIndexCheck(CollectionCheckSettings.IndexCheck indexCheck)
      Veraltet.
      use collectionCheckSettings
    • getCappedCheck

      Veraltet.
      use collectionCheckSettings
    • setCappedCheck

      @Deprecated public MorphiumConfig setCappedCheck(CollectionCheckSettings.CappedCheck cappedCheck)
      Veraltet.
      use collectionCheckSettings
    • getIdleSleepTime

      @Deprecated public int getIdleSleepTime()
      Veraltet.
      use ConnectionSettings
    • setIdleSleepTime

      @Deprecated public void setIdleSleepTime(int idleSleepTime)
      Veraltet.
      use ConnectionSettings
    • getRestoreData

      public Map<String,Object> getRestoreData()
    • setRestoreData

      public void setRestoreData(Map<String,Object> restoreData)
    • getMinConnections

      @Deprecated public int getMinConnections()
      Veraltet.
      use ConnectionSettings