Skip to content

Commit 603607f

Browse files
author
Prajesh Ravindran
committed
Add ActiveMQ event
1 parent 12ad1af commit 603607f

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

  • aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5+
* the License. A copy of the License is located at
6+
*
7+
* http://aws.amazon.com/apache2.0
8+
*
9+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11+
* and limitations under the License.
12+
*/
13+
package com.amazonaws.services.lambda.runtime.events;
14+
15+
import lombok.AllArgsConstructor;
16+
import lombok.Builder;
17+
import lombok.Data;
18+
import lombok.EqualsAndHashCode;
19+
import lombok.NoArgsConstructor;
20+
import java.util.List;
21+
22+
@Data
23+
@NoArgsConstructor
24+
@AllArgsConstructor
25+
@Builder(setterPrefix = "with")
26+
public class ActiveMQEvent {
27+
private String eventSource;
28+
private String eventSourceArn;
29+
private List<ActiveMQMessage> messages;
30+
31+
/**
32+
* Represents an Active MQ event sent to Lambda.
33+
*/
34+
@Data
35+
@NoArgsConstructor
36+
@AllArgsConstructor
37+
@EqualsAndHashCode
38+
@Builder(setterPrefix = "with")
39+
public static class ActiveMQMessage {
40+
private String messageID;
41+
private String messageType;
42+
private long timestamp;
43+
private int deliveryMode;
44+
private String correlationID;
45+
private String replyTo;
46+
private Destination destination;
47+
private boolean redelivered;
48+
private String type;
49+
private long expiration;
50+
private int priority;
51+
/** Message data sent to Active MQ broker encooded in Base 64 **/
52+
private String data;
53+
private long brokerInTime;
54+
private long brokerOutTime;
55+
}
56+
57+
@Data
58+
@NoArgsConstructor
59+
@AllArgsConstructor
60+
@Builder(setterPrefix = "with")
61+
public static class Destination {
62+
/** Queue Name **/
63+
private String physicalName;
64+
}
65+
}

0 commit comments

Comments
 (0)