public class MessageSize extends Object
Modifier and Type | Method and Description |
---|---|
static String |
fixed(long value)
Formats a spec string for fixed message content for the given size
|
static boolean |
isVariable(String sizeSpec) |
static int |
toSizeFromSpec(String sizeSpec)
Given a content/message size specification string, return it's base size
|
static String |
variable(long value)
Formats a spec string for variable message content for the given size
|
public static String variable(long value)
value
- the message sizepublic static String fixed(long value)
value
- the message sizepublic static boolean isVariable(String sizeSpec)
public static int toSizeFromSpec(String sizeSpec)
sizeSpec
- A message size specification stringThis documentation was released into the public domain.