Created
June 22, 2020 14:53
-
-
Save spericas/6046b85467c2032264ea5ae7f48acf34 to your computer and use it in GitHub Desktop.
MessageQueueResource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("rest") | |
public class MessageQueueResource { | |
@Inject | |
private MessageQueue messageQueue; | |
@POST | |
@Consumes("text/plain") | |
public void push(String s) { | |
messageQueue.push(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment