Class PostgresChannelMessageStoreQueryProvider
java.lang.Object
org.springframework.integration.jdbc.store.channel.PostgresChannelMessageStoreQueryProvider
- All Implemented Interfaces:
ChannelMessageStoreQueryProvider
public class PostgresChannelMessageStoreQueryProvider
extends Object
implements ChannelMessageStoreQueryProvider
- Since:
- 2.2
- Author:
- Gunnar Hillert, Artem Bilan, Adama Sorho, Johannes Edmeier
-
Field Summary
Fields inherited from interface org.springframework.integration.jdbc.store.channel.ChannelMessageStoreQueryProvider
SELECT_COMMON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the query used to retrieve the oldest message for a channel excluding messages that match the provided message ids.Get the query used to retrieve the oldest message for a channel.Get the query used to retrieve the oldest message by priority for a channel excluding messages that match the provided message ids.Get the query used to retrieve the oldest message by priority for a channel.booleanIndicate if the queries for polling are using a single statement (e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.jdbc.store.channel.ChannelMessageStoreQueryProvider
getCountAllMessagesInGroupQuery, getCreateMessageQuery, getDeleteMessageGroupQuery, getDeleteMessageQuery, getMessageCountForRegionQuery, getMessageQuery
-
Constructor Details
-
PostgresChannelMessageStoreQueryProvider
public PostgresChannelMessageStoreQueryProvider()
-
-
Method Details
-
getPollFromGroupExcludeIdsQuery
Description copied from interface:ChannelMessageStoreQueryProviderGet the query used to retrieve the oldest message for a channel excluding messages that match the provided message ids.- Specified by:
getPollFromGroupExcludeIdsQueryin interfaceChannelMessageStoreQueryProvider- Returns:
- query string
-
getPollFromGroupQuery
Description copied from interface:ChannelMessageStoreQueryProviderGet the query used to retrieve the oldest message for a channel.- Specified by:
getPollFromGroupQueryin interfaceChannelMessageStoreQueryProvider- Returns:
- query string
-
getPriorityPollFromGroupExcludeIdsQuery
Description copied from interface:ChannelMessageStoreQueryProviderGet the query used to retrieve the oldest message by priority for a channel excluding messages that match the provided message ids.- Specified by:
getPriorityPollFromGroupExcludeIdsQueryin interfaceChannelMessageStoreQueryProvider- Returns:
- query string
-
getPriorityPollFromGroupQuery
Description copied from interface:ChannelMessageStoreQueryProviderGet the query used to retrieve the oldest message by priority for a channel.- Specified by:
getPriorityPollFromGroupQueryin interfaceChannelMessageStoreQueryProvider- Returns:
- query string
-
isSingleStatementForPoll
public boolean isSingleStatementForPoll()Description copied from interface:ChannelMessageStoreQueryProviderIndicate if the queries for polling are using a single statement (e.g. DELETE ... RETURNING) to retrieve and delete the message from the channel store.- Specified by:
isSingleStatementForPollin interfaceChannelMessageStoreQueryProvider- Returns:
- true if a single statement is used, false if a select and delete is required.
-