Index

A B C D E G H I L M O P Q R S T U W 
All Classes and Interfaces|All Packages|Constant Field Values

A

addAllMessages(Iterable<? extends Message>) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch.Builder
Adds elements to messages list.
addMessages(Message) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch.Builder
Adds one element to messages list.
addMessages(Message...) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch.Builder
Adds elements to messages list.

B

build() - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig.Builder
Builds a new MessageHandlerConfig.
build() - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig.Builder
Builds a new MessageQueueConfig.
build() - Method in class io.github.hailuand.corgi.mq.model.message.Message.Builder
Builds a new Message.
build() - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch.Builder
Builds a new MessageHandlerBatch.
builder() - Static method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
Creates a builder for MessageHandlerConfig.
builder() - Static method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
Creates a builder for MessageQueueConfig.
builder() - Static method in class io.github.hailuand.corgi.mq.model.message.Message
Creates a builder for Message.
builder() - Static method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Creates a builder for MessageHandlerBatch.

C

checkIndexExistenceDql(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
checkIndexExistenceDql(String, String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
checkIndexExistenceDql(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 
copyOf(MessageHandlerConfigAbstract) - Static method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
Creates an immutable copy of a MessageHandlerConfigAbstract value.
copyOf(MessageQueueConfigAbstract) - Static method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
Creates an immutable copy of a MessageQueueConfigAbstract value.
copyOf(MessageAbstract) - Static method in class io.github.hailuand.corgi.mq.model.message.Message
Creates an immutable copy of a MessageAbstract value.
copyOf(MessageHandlerBatchAbstract) - Static method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Creates an immutable copy of a MessageHandlerBatchAbstract value.
createSqlDialect(Connection) - Method in class io.github.hailuand.corgi.mq.sql.dialect.SqlDialectFactory
 
createTableWithSchemaIfNotExists(Connection) - Method in class io.github.hailuand.corgi.mq.MessageQueue
Creates the schema and message queue table if they don't yet exist.

D

data() - Method in class io.github.hailuand.corgi.mq.model.message.Message
 
data() - Method in interface io.github.hailuand.corgi.mq.model.message.MessageAbstract
 
data(String) - Method in class io.github.hailuand.corgi.mq.model.message.Message.Builder
Initializes the value for the data attribute.

E

equals(Object) - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
This instance is equal to all instances of MessageHandlerConfig that have equal attribute values.
equals(Object) - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
This instance is equal to all instances of MessageQueueConfig that have equal attribute values.
equals(Object) - Method in class io.github.hailuand.corgi.mq.model.message.Message
This instance is equal to all instances of Message that have equal attribute values.
equals(Object) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
This instance is equal to all instances of MessageHandlerBatch that have equal attribute values.
executeInTransaction(Supplier<Connection>, Consumer<Connection>) - Method in class io.github.hailuand.corgi.mq.TransactionManager
 

G

getProcessingTimeIndexName(String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 

H

hashCode() - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
Computes a hash code from attributes: messageBatchSize.
hashCode() - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
Computes a hash code from attributes: queueName.
hashCode() - Method in class io.github.hailuand.corgi.mq.model.message.Message
Computes a hash code from attributes: id, data.
hashCode() - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Computes a hash code from attributes: messages, transactionConnection.

I

id() - Method in class io.github.hailuand.corgi.mq.model.message.Message
 
id() - Method in interface io.github.hailuand.corgi.mq.model.message.MessageAbstract
 
id(String) - Method in class io.github.hailuand.corgi.mq.model.message.Message.Builder
Initializes the value for the id attribute.
indexDdl(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
indexDdl(String, String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
indexDdl(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 
io.github.hailuand.corgi.mq - package io.github.hailuand.corgi.mq
 
io.github.hailuand.corgi.mq.handler - package io.github.hailuand.corgi.mq.handler
 
io.github.hailuand.corgi.mq.model.config - package io.github.hailuand.corgi.mq.model.config
 
io.github.hailuand.corgi.mq.model.message - package io.github.hailuand.corgi.mq.model.message
 
io.github.hailuand.corgi.mq.sql.dialect - package io.github.hailuand.corgi.mq.sql.dialect
 

L

listen(Supplier<Connection>, Function<MessageHandlerBatch, List<Message>>) - Method in class io.github.hailuand.corgi.mq.handler.MessageHandler
Reads, applies function, and pops messages from the queue all in transaction.

M

Message - Class in io.github.hailuand.corgi.mq.model.message
Immutable implementation of MessageAbstract.
Message.Builder - Class in io.github.hailuand.corgi.mq.model.message
Builds instances of type Message.
MessageAbstract - Interface in io.github.hailuand.corgi.mq.model.message
 
messageBatchSize() - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
 
messageBatchSize() - Method in interface io.github.hailuand.corgi.mq.model.config.MessageHandlerConfigAbstract
 
messageBatchSize(int) - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig.Builder
Initializes the value for the messageBatchSize attribute.
MessageHandler - Class in io.github.hailuand.corgi.mq.handler
Encapsulates the reading, processing, and popping of Message from a MessageQueue.
MessageHandlerBatch - Class in io.github.hailuand.corgi.mq.model.message
Immutable implementation of MessageHandlerBatchAbstract.
MessageHandlerBatch.Builder - Class in io.github.hailuand.corgi.mq.model.message
Builds instances of type MessageHandlerBatch.
MessageHandlerBatchAbstract - Interface in io.github.hailuand.corgi.mq.model.message
 
MessageHandlerConfig - Class in io.github.hailuand.corgi.mq.model.config
Immutable implementation of MessageHandlerConfigAbstract.
MessageHandlerConfig.Builder - Class in io.github.hailuand.corgi.mq.model.config
Builds instances of type MessageHandlerConfig.
MessageHandlerConfigAbstract - Interface in io.github.hailuand.corgi.mq.model.config
 
MessageQueue - Class in io.github.hailuand.corgi.mq
Interface for managing a message queue in a DBMS.
MessageQueueConfig - Class in io.github.hailuand.corgi.mq.model.config
Immutable implementation of MessageQueueConfigAbstract.
MessageQueueConfig.Builder - Class in io.github.hailuand.corgi.mq.model.config
Builds instances of type MessageQueueConfig.
MessageQueueConfigAbstract - Interface in io.github.hailuand.corgi.mq.model.config
 
messages() - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
 
messages() - Method in interface io.github.hailuand.corgi.mq.model.message.MessageHandlerBatchAbstract
 
MySqlDialect - Class in io.github.hailuand.corgi.mq.sql.dialect
 
MySqlDialect() - Constructor for class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 

O

of(int) - Static method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
Construct a new immutable MessageHandlerConfig instance.
of(MessageQueue) - Static method in class io.github.hailuand.corgi.mq.handler.MessageHandler
Creates a handler for messages in messageQueue with a default configuration.
of(MessageQueue, MessageHandlerConfig) - Static method in class io.github.hailuand.corgi.mq.handler.MessageHandler
Creates a handler for messages in messageQueue with a custom configuration.
of(MessageQueueConfig, Connection) - Static method in class io.github.hailuand.corgi.mq.MessageQueue
Creates a new instance of a message queue, inquiring the database to build the appropriate SqlDialect.
of(Iterable<? extends Message>, Connection) - Static method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Construct a new immutable MessageHandlerBatch instance.
of(String) - Static method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
Construct a new immutable MessageQueueConfig instance.
of(String) - Static method in class io.github.hailuand.corgi.mq.model.message.Message
Construct a new immutable Message instance.
of(List<Message>, Connection) - Static method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Construct a new immutable MessageHandlerBatch instance.

P

pop(List<Message>, Connection) - Method in class io.github.hailuand.corgi.mq.MessageQueue
Pops Message from the queue, causing them to no longer be received by any readers.
popMessagesDml(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
popMessagesDml(String, String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
popMessagesDml(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 
push(List<Message>, Connection) - Method in class io.github.hailuand.corgi.mq.MessageQueue
Pushes Message to the queue.
pushMessagesDml(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
pushMessagesDml(String, String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
pushMessagesDml(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 

Q

queueName() - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
 
queueName() - Method in interface io.github.hailuand.corgi.mq.model.config.MessageQueueConfigAbstract
 
queueName(String) - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig.Builder
Initializes the value for the queueName attribute.
queueTableName() - Method in class io.github.hailuand.corgi.mq.MessageQueue
 

R

read(int, Connection) - Method in class io.github.hailuand.corgi.mq.MessageQueue
Reads numMessages of Message from the queue, ordered by message time.
readMessagesDql(String, String, int) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
readMessagesDql(String, String, int) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
readMessagesDql(String, String, int) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 

S

SCHEMA_NAME - Static variable in class io.github.hailuand.corgi.mq.MessageQueue
 
schemaDdl(String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
schemaDdl(String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
schemaDdl(String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 
SqlDialect - Interface in io.github.hailuand.corgi.mq.sql.dialect
 
SqlDialectFactory - Class in io.github.hailuand.corgi.mq.sql.dialect
 
SqlDialectFactory() - Constructor for class io.github.hailuand.corgi.mq.sql.dialect.SqlDialectFactory
 
StandardSqlDialect - Class in io.github.hailuand.corgi.mq.sql.dialect
 
StandardSqlDialect() - Constructor for class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 

T

tableDdl(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
tableDdl(String, String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
tableDdl(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 
tableSchemaName() - Method in class io.github.hailuand.corgi.mq.MessageQueue
 
toString() - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
Prints the immutable value MessageHandlerConfig with attribute values.
toString() - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
Prints the immutable value MessageQueueConfig with attribute values.
toString() - Method in class io.github.hailuand.corgi.mq.model.message.Message
Prints the immutable value Message with attribute values.
toString() - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Prints the immutable value MessageHandlerBatch with attribute values.
transactionConnection() - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
 
transactionConnection() - Method in interface io.github.hailuand.corgi.mq.model.message.MessageHandlerBatchAbstract
 
transactionConnection(Connection) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch.Builder
Initializes the value for the transactionConnection attribute.
TransactionManager - Class in io.github.hailuand.corgi.mq
 
TransactionManager() - Constructor for class io.github.hailuand.corgi.mq.TransactionManager
 

U

updateReadCountDml(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.MySqlDialect
 
updateReadCountDml(String, String) - Method in interface io.github.hailuand.corgi.mq.sql.dialect.SqlDialect
 
updateReadCountDml(String, String) - Method in class io.github.hailuand.corgi.mq.sql.dialect.StandardSqlDialect
 

W

withData(String) - Method in class io.github.hailuand.corgi.mq.model.message.Message
Copy the current immutable object by setting a value for the data attribute.
withId(String) - Method in class io.github.hailuand.corgi.mq.model.message.Message
Copy the current immutable object by setting a value for the id attribute.
withMessageBatchSize(int) - Method in class io.github.hailuand.corgi.mq.model.config.MessageHandlerConfig
Copy the current immutable object by setting a value for the messageBatchSize attribute.
withMessages(Message...) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Copy the current immutable object with elements that replace the content of messages.
withMessages(Iterable<? extends Message>) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Copy the current immutable object with elements that replace the content of messages.
withQueueName(String) - Method in class io.github.hailuand.corgi.mq.model.config.MessageQueueConfig
Copy the current immutable object by setting a value for the queueName attribute.
withTransactionConnection(Connection) - Method in class io.github.hailuand.corgi.mq.model.message.MessageHandlerBatch
Copy the current immutable object by setting a value for the transactionConnection attribute.
A B C D E G H I L M O P Q R S T U W 
All Classes and Interfaces|All Packages|Constant Field Values