Skip to content

Commit

Permalink
#346 Async: implement simple and important JSON parameters for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Polevoy committed Jun 13, 2017
1 parent 2f25d2e commit b041571
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions javalite-async/src/main/java/org/javalite/async/Command.java
Expand Up @@ -114,13 +114,12 @@ public void setJMSMessageID(String jmsMessageId) {
}

/**
* Sets parameters and their values to reflect by the {@link #toJson()} method.
* Adds parameters and their values to reflect by the {@link #toJson()} method.
*
* @param params important parameters of this command - tings you want to see in a log file.
*/
public void setJsonParams(Map params){
this.params = params;
this.params.put("class", getClass().getSimpleName());
public void addJsonParams(Map params){
this.params.putAll(params);
}

/**
Expand Down

0 comments on commit b041571

Please sign in to comment.