aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompSubscription.java
blob: 5ecbeb06f389d0e0b580b7b895e8f9d7f0375c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package kr.syeyoung.dungeonsguide.stomp;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;

@Data
@Builder
public class StompSubscription {
    private int id;
    private String destination;
    private StompMessageHandler stompMessageHandler;
    private AckMode ackMode;

    @AllArgsConstructor
    public static enum AckMode {
        AUTO("auto"), CLIENT("client"), CLIENT_INDIVIDUAL("client-individual");

        @Getter
        private String value;
    }
}