Skip to content

Commit

Permalink
CAMEL-8872 Fix typing error in getAndAdd operation constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed Jun 15, 2015
1 parent 11883ff commit 75745c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void init() {
addMapping("setvalue", HazelcastConstants.SETVALUE_OPERATION);
addMapping("destroy", HazelcastConstants.DESTROY_OPERATION);
addMapping("compareAndSet", HazelcastConstants.COMPARE_AND_SET_OPERATION);
addMapping("getAndAdd", HazelcastConstants.GET_AND_ADD);
addMapping("getAndAdd", HazelcastConstants.GET_AND_ADD_OPERATION);

// queue
addMapping("add", HazelcastConstants.ADD_OPERATION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public final class HazelcastConstants {
public static final int SETVALUE_OPERATION = 22;
public static final int DESTROY_OPERATION = 23;
public static final int COMPARE_AND_SET_OPERATION = 24;
public static final int GET_AND_ADD = 25;
public static final int GET_AND_ADD_OPERATION = 25;

// queue
public static final int ADD_OPERATION = 31;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void process(Exchange exchange) throws Exception {
this.compare(expectedValue, exchange);
break;

case HazelcastConstants.GET_AND_ADD:
case HazelcastConstants.GET_AND_ADD_OPERATION:
this.getAndAdd(exchange);
break;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void configure() throws Exception {
from("direct:compareAndSet").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.COMPARE_AND_SET_OPERATION)).to(
String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));

from("direct:getAndAdd").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_AND_ADD)).to(
from("direct:getAndAdd").setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_AND_ADD_OPERATION)).to(
String.format("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX));

from("direct:setWithOperationNumber").toF("hazelcast:%sfoo?operation=%s", HazelcastConstants.ATOMICNUMBER_PREFIX, HazelcastConstants.SETVALUE_OPERATION);
Expand Down

0 comments on commit 75745c5

Please sign in to comment.