You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: amazon-sns-java-messaging-lib-v1/src/main/java/com/amazon/sns/messaging/lib/core/AmazonSnsTemplate.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ public static <E> Builder<AmazonSNS, PublishBatchRequest, PublishBatchResult, E,
71
71
/**
72
72
* Creates a new v1 SNS template with default settings.
73
73
*
74
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} instead
74
75
* @param amazonSnsClient the v1 {@link AmazonSNS} client
75
76
* @param topicProperty the topic configuration
76
77
*/
@@ -84,6 +85,7 @@ public AmazonSnsTemplate(
84
85
/**
85
86
* Creates a new v1 SNS template with a custom publish decorator.
86
87
*
88
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} and {@link Builder#publishDecorator(UnaryOperator)} instead
87
89
* @param amazonSnsClient the v1 {@link AmazonSNS} client
88
90
* @param topicProperty the topic configuration
89
91
* @param publishDecorator a decorator for the publish batch request
@@ -99,6 +101,7 @@ public AmazonSnsTemplate(
99
101
/**
100
102
* Creates a new v1 SNS template with a custom topic request queue.
101
103
*
104
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} and {@link Builder#topicRequests(BlockingQueue)} instead
102
105
* @param amazonSnsClient the v1 {@link AmazonSNS} client
103
106
* @param topicProperty the topic configuration
104
107
* @param topicRequests the blocking queue for topic requests
@@ -114,6 +117,7 @@ public AmazonSnsTemplate(
114
117
/**
115
118
* Creates a new v1 SNS template with a custom queue and publish decorator.
116
119
*
120
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#publishDecorator(UnaryOperator)} instead
117
121
* @param amazonSnsClient the v1 {@link AmazonSNS} client
118
122
* @param topicProperty the topic configuration
119
123
* @param topicRequests the blocking queue for topic requests
@@ -131,6 +135,7 @@ public AmazonSnsTemplate(
131
135
/**
132
136
* Creates a new v1 SNS template with a custom ObjectMapper.
133
137
*
138
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} and {@link Builder#objectMapper(ObjectMapper)} instead
134
139
* @param amazonSnsClient the v1 {@link AmazonSNS} client
135
140
* @param topicProperty the topic configuration
136
141
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -146,6 +151,7 @@ public AmazonSnsTemplate(
146
151
/**
147
152
* Creates a new v1 SNS template with a custom ObjectMapper and publish decorator.
148
153
*
154
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with {@link Builder#objectMapper(ObjectMapper)} and {@link Builder#publishDecorator(UnaryOperator)} instead
149
155
* @param amazonSnsClient the v1 {@link AmazonSNS} client
150
156
* @param topicProperty the topic configuration
151
157
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -163,6 +169,7 @@ public AmazonSnsTemplate(
163
169
/**
164
170
* Creates a new v1 SNS template with a custom queue and ObjectMapper.
165
171
*
172
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#objectMapper(ObjectMapper)} instead
166
173
* @param amazonSnsClient the v1 {@link AmazonSNS} client
167
174
* @param topicProperty the topic configuration
168
175
* @param topicRequests the blocking queue for topic requests
@@ -180,6 +187,7 @@ public AmazonSnsTemplate(
180
187
/**
181
188
* Creates a new v1 SNS template with full custom configuration.
182
189
*
190
+
* @deprecated since 1.3.0, use {@link #builder(AmazonSNS, TopicProperty)} with builder setters instead
183
191
* @param amazonSnsClient the v1 {@link AmazonSNS} client
184
192
* @param topicProperty the topic configuration
185
193
* @param topicRequests the blocking queue for topic requests
Copy file name to clipboardExpand all lines: amazon-sns-java-messaging-lib-v2/src/main/java/com/amazon/sns/messaging/lib/core/AmazonSnsTemplate.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ public static <E> Builder<SnsClient, PublishBatchRequest, PublishBatchResponse,
72
72
/**
73
73
* Creates a new v2 SNS template with default settings.
74
74
*
75
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} instead
75
76
* @param amazonSnsClient the v2 {@link SnsClient}
76
77
* @param topicProperty the topic configuration
77
78
*/
@@ -85,6 +86,7 @@ public AmazonSnsTemplate(
85
86
/**
86
87
* Creates a new v2 SNS template with a custom publish decorator.
87
88
*
89
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} and {@link Builder#publishDecorator(UnaryOperator)} instead
88
90
* @param amazonSnsClient the v2 {@link SnsClient}
89
91
* @param topicProperty the topic configuration
90
92
* @param publishDecorator a decorator for the publish batch request
@@ -100,6 +102,7 @@ public AmazonSnsTemplate(
100
102
/**
101
103
* Creates a new v2 SNS template with a custom topic request queue.
102
104
*
105
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} and {@link Builder#topicRequests(BlockingQueue)} instead
103
106
* @param amazonSnsClient the v2 {@link SnsClient}
104
107
* @param topicProperty the topic configuration
105
108
* @param topicRequests the blocking queue for topic requests
@@ -115,6 +118,7 @@ public AmazonSnsTemplate(
115
118
/**
116
119
* Creates a new v2 SNS template with a custom queue and publish decorator.
117
120
*
121
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#publishDecorator(UnaryOperator)} instead
118
122
* @param amazonSnsClient the v2 {@link SnsClient}
119
123
* @param topicProperty the topic configuration
120
124
* @param topicRequests the blocking queue for topic requests
@@ -132,6 +136,7 @@ public AmazonSnsTemplate(
132
136
/**
133
137
* Creates a new v2 SNS template with a custom ObjectMapper.
134
138
*
139
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} and {@link Builder#objectMapper(ObjectMapper)} instead
135
140
* @param amazonSnsClient the v2 {@link SnsClient}
136
141
* @param topicProperty the topic configuration
137
142
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -147,6 +152,7 @@ public AmazonSnsTemplate(
147
152
/**
148
153
* Creates a new v2 SNS template with a custom ObjectMapper and publish decorator.
149
154
*
155
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with {@link Builder#objectMapper(ObjectMapper)} and {@link Builder#publishDecorator(UnaryOperator)} instead
150
156
* @param amazonSnsClient the v2 {@link SnsClient}
151
157
* @param topicProperty the topic configuration
152
158
* @param objectMapper the Jackson ObjectMapper for payload serialization
@@ -164,6 +170,7 @@ public AmazonSnsTemplate(
164
170
/**
165
171
* Creates a new v2 SNS template with a custom queue and ObjectMapper.
166
172
*
173
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with {@link Builder#topicRequests(BlockingQueue)} and {@link Builder#objectMapper(ObjectMapper)} instead
167
174
* @param amazonSnsClient the v2 {@link SnsClient}
168
175
* @param topicProperty the topic configuration
169
176
* @param topicRequests the blocking queue for topic requests
@@ -181,6 +188,7 @@ public AmazonSnsTemplate(
181
188
/**
182
189
* Creates a new v2 SNS template with full custom configuration.
183
190
*
191
+
* @deprecated since 1.3.0, use {@link #builder(SnsClient, TopicProperty)} with builder setters instead
184
192
* @param amazonSnsClient the v2 {@link SnsClient}
185
193
* @param topicProperty the topic configuration
186
194
* @param topicRequests the blocking queue for topic requests
0 commit comments