Class PessimisticTxIracLocalInterceptor

All Implemented Interfaces:
Visitor, AsyncInterceptor, LogSupplier

public class PessimisticTxIracLocalInterceptor extends AbstractIracLocalSiteInterceptor
Interceptor used by IRAC for pessimistic transactional caches to handle the local site updates.

On each successful write, a request is made to the primary owner to generate a new IracMetadata. At this moment, the lock is acquired so no other transaction can change the key.

On prepare, the transaction originator waits for all the replies made during the transaction running, sets them in the WriteCommand and sends the PrepareCommand to all the owners.

The owners only have to retrieve the IracMetadata from the WriteCommand and store it.

Since:
11.0
Author:
Pedro Ruivo