1
votes

Internally entry processor also perform the lock and unlock on the key as pessimistic locking. But entry processor is more efficient as compared to pessimistic locking. Whats the difference between these to?

1

1 Answers

3
votes

Answer copy from the mailinglist:

An EntryProcessor doesn’t perform a lock. It is not necessary since EntryProcessors running in the same partition threads as all other operations, therefore you have an implicit locking like behavior. That is btw the reason why EntryProcessors shouldn’t be long running operations!