Package com.github.ddth.queue
Class QueueSpec
- java.lang.Object
-
- com.github.ddth.queue.QueueSpec
-
public class QueueSpec extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_EPHEMERAL_DISABLED
static String
FIELD_EPHEMERAL_MAX_SIZE
static String
FIELD_MAX_SIZE
String
name
static int
NO_BOUNDARY
-
Constructor Summary
Constructors Constructor Description QueueSpec()
QueueSpec(boolean ephemeralDisabled)
QueueSpec(boolean ephemeralDisabled, int maxSize)
QueueSpec(boolean ephemeralDisabled, int maxSize, int ephemeralMaxSize)
QueueSpec(int maxSize)
QueueSpec(int maxSize, int ephemeralMaxSize)
QueueSpec(String name)
QueueSpec(String name, boolean ephemeralDisabled)
QueueSpec(String name, boolean ephemeralDisabled, int maxSize)
QueueSpec(String name, boolean ephemeralDisabled, int maxSize, int ephemeralMaxSize)
QueueSpec(String name, int maxSize)
QueueSpec(String name, int maxSize, int ephemeralMaxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getField(String fieldName)
Get a field's value.<T> T
getField(String fieldName, Class<T> clazz)
Get a field's value.<T> Optional<T>
getFieldOptional(String fieldName, Class<T> clazz)
Get a field's value.int
hashCode()
QueueSpec
setField(String fieldName, Object value)
Set a field's value.String
toString()
-
-
-
Field Detail
-
name
public final String name
-
NO_BOUNDARY
public static final int NO_BOUNDARY
- See Also:
- Constant Field Values
-
FIELD_EPHEMERAL_DISABLED
public static final String FIELD_EPHEMERAL_DISABLED
- See Also:
- Constant Field Values
-
FIELD_MAX_SIZE
public static final String FIELD_MAX_SIZE
- See Also:
- Constant Field Values
-
FIELD_EPHEMERAL_MAX_SIZE
public static final String FIELD_EPHEMERAL_MAX_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueueSpec
public QueueSpec()
-
QueueSpec
public QueueSpec(String name)
-
QueueSpec
public QueueSpec(boolean ephemeralDisabled)
-
QueueSpec
public QueueSpec(String name, boolean ephemeralDisabled)
-
QueueSpec
public QueueSpec(int maxSize)
-
QueueSpec
public QueueSpec(String name, int maxSize)
-
QueueSpec
public QueueSpec(int maxSize, int ephemeralMaxSize)
-
QueueSpec
public QueueSpec(String name, int maxSize, int ephemeralMaxSize)
-
QueueSpec
public QueueSpec(boolean ephemeralDisabled, int maxSize)
-
QueueSpec
public QueueSpec(String name, boolean ephemeralDisabled, int maxSize)
-
QueueSpec
public QueueSpec(boolean ephemeralDisabled, int maxSize, int ephemeralMaxSize)
-
QueueSpec
public QueueSpec(String name, boolean ephemeralDisabled, int maxSize, int ephemeralMaxSize)
-
-
Method Detail
-
setField
public QueueSpec setField(String fieldName, Object value)
Set a field's value.- Parameters:
fieldName
-value
-- Returns:
-
getField
public <T> T getField(String fieldName, Class<T> clazz)
Get a field's value.- Parameters:
fieldName
-clazz
-- Returns:
-
getFieldOptional
public <T> Optional<T> getFieldOptional(String fieldName, Class<T> clazz)
Get a field's value.- Parameters:
fieldName
-clazz
-- Returns:
-
getField
public String getField(String fieldName)
Get a field's value.- Parameters:
fieldName
-- Returns:
-
-