protected void sendPrice(final String price) { subscriptionListener.publish( "STOCK", new JsonPayload("STOCK") { { addField("LastPrice", price); } }); }
@SuppressWarnings("serial") protected void setUpSubscriptionResponse() { subscriptionListener.setSubscriptionResponses( new HashMap<String, Payload>() { { put( "STOCK", new JsonPayload("STOCK") { { addField("LastPrice", "Initial"); } }); } }); }