类 MemorySizeProperty
- java.lang.Object
-
- com.mysql.cj.conf.AbstractRuntimeProperty<Integer>
-
- com.mysql.cj.conf.IntegerProperty
-
- com.mysql.cj.conf.MemorySizeProperty
-
- 所有已实现的接口:
RuntimeProperty<Integer>,Serializable
public class MemorySizeProperty extends IntegerProperty
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.conf.RuntimeProperty
RuntimeProperty.RuntimePropertyListener
-
-
字段概要
字段 修饰符和类型 字段 说明 protected StringvalueAsString-
从类继承的字段 com.mysql.cj.conf.AbstractRuntimeProperty
initialValue, value, wasExplicitlySet
-
-
构造器概要
构造器 限定符 构造器 说明 protectedMemorySizeProperty(PropertyDefinition<Integer> propertyDefinition)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetStringValue()Get internal value representation as String.voidinitializeFrom(Properties extractFrom, ExceptionInterceptor exceptionInterceptor)Explicitly set value of this RuntimeProperty according to the self-titled property value contained in extractFrom.voidinitializeFrom(Reference ref, ExceptionInterceptor exceptionInterceptor)voidresetValue()Reset to initial value (default or defined in connection string/Properties)voidsetValueInternal(Integer value, String valueAsString, ExceptionInterceptor exceptionInterceptor)Internal method for setting property value; ignoring the RUNTIME_NOT_MODIFIABLE flag.-
从类继承的方法 com.mysql.cj.conf.IntegerProperty
checkRange
-
从类继承的方法 com.mysql.cj.conf.AbstractRuntimeProperty
addListener, getInitialValue, getPropertyDefinition, getValue, invokeListeners, isExplicitlySet, removeListener, setValue, setValue, setValueInternal
-
-
-
-
字段详细资料
-
valueAsString
protected String valueAsString
-
-
构造器详细资料
-
MemorySizeProperty
protected MemorySizeProperty(PropertyDefinition<Integer> propertyDefinition)
-
-
方法详细资料
-
initializeFrom
public void initializeFrom(Properties extractFrom, ExceptionInterceptor exceptionInterceptor)
从接口复制的说明:RuntimePropertyExplicitly set value of this RuntimeProperty according to the self-titled property value contained in extractFrom. This method is called during PropertySet initialization thus ignores the RUNTIME_NOT_MODIFIABLE flag.This value will also be the initial one, i.e.
RuntimeProperty.resetValue()will reset to this value, not the default one.If extractFrom does not contain such property then this RuntimeProperty remains unchanged.
- 指定者:
initializeFrom在接口中RuntimeProperty<Integer>- 覆盖:
initializeFrom在类中AbstractRuntimeProperty<Integer>- 参数:
extractFrom-Propertiesobject containing key-value pairs usually passed from connection string.exceptionInterceptor- exceptionInterceptor
-
initializeFrom
public void initializeFrom(Reference ref, ExceptionInterceptor exceptionInterceptor)
- 指定者:
initializeFrom在接口中RuntimeProperty<Integer>- 覆盖:
initializeFrom在类中AbstractRuntimeProperty<Integer>
-
getStringValue
public String getStringValue()
从接口复制的说明:RuntimePropertyGet internal value representation as String.- 指定者:
getStringValue在接口中RuntimeProperty<Integer>- 覆盖:
getStringValue在类中AbstractRuntimeProperty<Integer>- 返回:
- value
-
setValueInternal
public void setValueInternal(Integer value, String valueAsString, ExceptionInterceptor exceptionInterceptor)
从类复制的说明:AbstractRuntimePropertyInternal method for setting property value; ignoring the RUNTIME_NOT_MODIFIABLE flag.- 覆盖:
setValueInternal在类中AbstractRuntimeProperty<Integer>- 参数:
value- valuevalueAsString- value represented by StringexceptionInterceptor- exception interceptor
-
resetValue
public void resetValue()
从接口复制的说明:RuntimePropertyReset to initial value (default or defined in connection string/Properties)- 指定者:
resetValue在接口中RuntimeProperty<Integer>- 覆盖:
resetValue在类中AbstractRuntimeProperty<Integer>
-
-