Skip to content

Commit

Permalink
client ordered event execution minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asimarslan committed Sep 1, 2014
1 parent 1a95801 commit 12aeeca
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@
import com.hazelcast.nio.serialization.SerializationService;
import com.hazelcast.util.ExceptionUtil;
import com.hazelcast.util.executor.StripedExecutor;
import com.hazelcast.util.executor.StripedRunnable;

import java.util.Collections;
import java.util.Iterator;
Expand Down Expand Up @@ -127,7 +128,7 @@ public void shutdown() {
eventExecutor.shutdown();
}

private final class ClientEventProcessor implements Runnable {
private final class ClientEventProcessor implements StripedRunnable {
final Packet packet;

private ClientEventProcessor(Packet packet) {
Expand All @@ -152,5 +153,10 @@ private void handleEvent(Data event, int callId, ClientConnection conn) {
}
eventHandler.handle(eventObject);
}

@Override
public int getKey() {
return packet.getPartitionId();
}
}
}

0 comments on commit 12aeeca

Please sign in to comment.