Class SynchronizedDecoratorMarshaller<T>

java.lang.Object
Type Parameters:
T - the target type of this marshaller
All Implemented Interfaces:
Function<Object[],T>, org.infinispan.protostream.BaseMarshaller<T>, org.infinispan.protostream.ProtobufTagMarshaller<T>, Marshallable<T>, ProtoStreamMarshaller<T>, Readable<T>, Writable<T>

public class SynchronizedDecoratorMarshaller<T> extends DecoratorMarshaller<T>
A decorator marshaller that writes the decorated object while holding its monitor lock. e.g. to enable iteration over a decorated collection without the risk of a ConcurrentModificationException.
Author:
Paul Ferraro