Enum Class的使用
org.apache.pulsar.client.api.SizeUnit
使用SizeUnit的程序包
-
org.apache.pulsar.client.api中SizeUnit的使用
修饰符和类型方法说明static SizeUnitReturns the enum constant of this class with the specified name.static SizeUnit[]SizeUnit.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为SizeUnit的org.apache.pulsar.client.api中的方法修饰符和类型方法说明ClientBuilder.memoryLimit(long memoryLimit, SizeUnit unit) Configure a limit on the amount of direct memory that will be allocated by this client instance.