001/* 002 * Copyright 2002-2020 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.messaging.simp; 018 019/** 020 * A generic representation of different kinds of messages found in simple messaging 021 * protocols like STOMP. 022 * 023 * @author Rossen Stoyanchev 024 * @since 4.0 025 */ 026public enum SimpMessageType { 027 028 CONNECT, 029 030 CONNECT_ACK, 031 032 MESSAGE, 033 034 SUBSCRIBE, 035 036 UNSUBSCRIBE, 037 038 HEARTBEAT, 039 040 DISCONNECT, 041 042 DISCONNECT_ACK, 043 044 OTHER 045 046}