Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78670384
UpdateController.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 22, 07:40
Size
603 B
Mime Type
text/x-java
Expires
Sat, Aug 24, 07:40 (2 d)
Engine
blob
Format
Raw Data
Handle
20081417
Attached To
rDDJUDGEBACK JudgeMyRace Back
UpdateController.java
View Options
package
net.javaguides.springboot.websocket.controller
;
import
org.springframework.messaging.handler.annotation.MessageMapping
;
import
org.springframework.messaging.handler.annotation.SendTo
;
import
org.springframework.stereotype.Controller
;
@Controller
public
class
UpdateController
{
@MessageMapping
(
"/updateCurrent"
)
@SendTo
(
"/data/update"
)
public
String
updateCurrent
()
throws
Exception
{
return
"updateCurrent"
;
}
@MessageMapping
(
"/updatePassed"
)
@SendTo
(
"/data/update"
)
public
String
updatePassed
()
throws
Exception
{
return
"updatePassed"
;
}
}
Event Timeline
Log In to Comment