switch (configuration.clustering().cacheMode()) {
case REPL_SYNC:
if (needsVersionAwareComponents) {
//added custom interceptor to replace the original
if (isTotalOrder) {
interceptorChain.appendInterceptor(createInterceptor(new TotalOrderVersionedReplicationInterceptor(),
TotalOrderVersionedReplicationInterceptor.class), false);
} else {
interceptorChain.appendInterceptor(createInterceptor(new VersionedReplicationInterceptor(), VersionedReplicationInterceptor.class), false);
}
break;