Package org.jgroups.demos
Class StompChat
java.lang.Object
org.jgroups.demos.StompChat
- All Implemented Interfaces:
StompConnection.Listener
Chat client using STOMP to talk to other clients
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected StompConnectionstatic final Stringstatic final Stringstatic final Stringprotected Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnect()static voidvoidvoidprotected voidvoidprotected voidshowStatus(String msg) voidstart()
-
Field Details
-
username
-
users
-
stomp_client
-
MESSAGES
- See Also:
-
CLIENT_JOINED
- See Also:
-
CLIENT_LEFT
- See Also:
-
CLIENTS
- See Also:
-
USER_JOINED
- See Also:
-
USER_LEFT
- See Also:
-
GET_USERS
- See Also:
-
USERS
- See Also:
-
ENDPOINTS
- See Also:
-
VIEW
- See Also:
-
CLIENTS_KW
- See Also:
-
DESTINATION
- See Also:
-
USER
- See Also:
-
USERS_KW
- See Also:
-
CLIENT
- See Also:
-
-
Constructor Details
-
StompChat
-
-
Method Details
-
main
- Throws:
Exception
-
start
- Throws:
Exception
-
connect
- Throws:
Exception
-
send
-
sendGetUsers
public void sendGetUsers() -
showStatus
-
onInfo
- Specified by:
onInfoin interfaceStompConnection.Listener
-
onMessage
- Specified by:
onMessagein interfaceStompConnection.Listener
-