Package ru.yoomoney.tech.dbqueue.config
Class QueueTableSchema
- java.lang.Object
-
- ru.yoomoney.tech.dbqueue.config.QueueTableSchema
-
public class QueueTableSchema extends java.lang.ObjectScheme for column names of queue table in the database.- Since:
- 05.10.2019
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueueTableSchema.BuilderBuilder forQueueTableSchemaclass.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueueTableSchema.Builderbuilder()java.lang.StringgetAttemptField()Field with a column name for task execution attempts count.java.lang.StringgetCreatedAtField()Field with a column name for task creation date and time.java.util.List<java.lang.String>getExtFields()Additional list of column names (TEXTtype), which are mapping ontoTaskRecord.getExtData().java.lang.StringgetIdField()Field with a column name for the id.java.lang.StringgetNextProcessAtField()Field with a column name for task processing date and time (task will be processed after this date).java.lang.StringgetPayloadField()Field with a column name for task payload.java.lang.StringgetQueueNameField()Field with a column name for the queue name.java.lang.StringgetReenqueueAttemptField()Field with a column name for task execution re-enqueue attempts count.java.lang.StringgetTotalAttemptField()Field with a column name for task execution total attempts count.
-
-
-
Method Detail
-
getPayloadField
@Nonnull public java.lang.String getPayloadField()
Field with a column name for task payload. Column maps ontoTaskRecord.getPayload().- Returns:
- Column name.
-
getAttemptField
@Nonnull public java.lang.String getAttemptField()
Field with a column name for task execution attempts count. Column maps ontoTaskRecord.getAttemptsCount().- Returns:
- Column name.
-
getReenqueueAttemptField
@Nonnull public java.lang.String getReenqueueAttemptField()
Field with a column name for task execution re-enqueue attempts count. Column maps ontoTaskRecord.getReenqueueAttemptsCount().- Returns:
- Column name.
-
getTotalAttemptField
@Nonnull public java.lang.String getTotalAttemptField()
Field with a column name for task execution total attempts count. Column maps ontoTaskRecord.getTotalAttemptsCount().- Returns:
- Column name.
-
getCreatedAtField
@Nonnull public java.lang.String getCreatedAtField()
Field with a column name for task creation date and time. Column maps ontoTaskRecord.getCreatedAt().- Returns:
- Column name.
-
getNextProcessAtField
@Nonnull public java.lang.String getNextProcessAtField()
Field with a column name for task processing date and time (task will be processed after this date).- Returns:
- Column name.
-
getQueueNameField
@Nonnull public java.lang.String getQueueNameField()
Field with a column name for the queue name.- Returns:
- Column name.
-
getIdField
@Nonnull public java.lang.String getIdField()
Field with a column name for the id.- Returns:
- Column name.
-
getExtFields
@Nonnull public java.util.List<java.lang.String> getExtFields()
Additional list of column names (TEXTtype), which are mapping ontoTaskRecord.getExtData().- Returns:
- List of column names.
-
builder
public static QueueTableSchema.Builder builder()
-
-