Biblioteca Java - Rev 31

Subversion Repositories:
Rev:
package com.linkscreens.activemq.protocol;

/**
 * Created by evo2 on 7/29/2015.
 */

public class DummyMessageProtocol  extends MessageProtocol {
    private long id;

    DummyMessageProtocol() {
        super(ProtocolType.DUMMY);
    }

    public String handleProtocolMessage(String messageText) {
        String responseText;
        id++;
        System.out.println("::: Processing message "+id+" with protocol "+this.getProtocolType());
        responseText = "DUMMY: "+messageText+" message count="+id;
        return responseText;
    }
}