Biblioteca Java - Blame information for rev 31
Subversion Repositories:
(root)/Frameworks and Technologies/TestActiveMQ2/src/main/java/com/linkscreens/activemq/protocol/DummyMessageProtocol.java
Rev | Author | Line No. | Line |
---|---|---|---|
31 | mihai | 1 | package com.linkscreens.activemq.protocol; |
2 | |||
3 | /** | ||
4 | * Created by evo2 on 7/29/2015. | ||
5 | */ | ||
6 | public class DummyMessageProtocol extends MessageProtocol { | ||
7 | private long id; | ||
8 | |||
9 | DummyMessageProtocol() { | ||
10 | super(ProtocolType.DUMMY); | ||
11 | } | ||
12 | |||
13 | public String handleProtocolMessage(String messageText) { | ||
14 | String responseText; | ||
15 | id++; | ||
16 | System.out.println("::: Processing message "+id+" with protocol "+this.getProtocolType()); | ||
17 | responseText = "DUMMY: "+messageText+" message count="+id; | ||
18 | return responseText; | ||
19 | } | ||
20 | } |