Search in sources :

Example 1 with ReadOnly

use of com.hazelcast.core.ReadOnly in project hazelcast by hazelcast.

the class EntryOperation method innerBeforeRun.

@Override
public void innerBeforeRun() throws Exception {
    super.innerBeforeRun();
    this.begin = Clock.currentTimeMillis();
    this.readOnly = entryProcessor instanceof ReadOnly;
    SerializationService serializationService = getNodeEngine().getSerializationService();
    ManagedContext managedContext = serializationService.getManagedContext();
    entryProcessor = (EntryProcessor) managedContext.initialize(entryProcessor);
}
Also used : ReadOnly(com.hazelcast.core.ReadOnly) SerializationService(com.hazelcast.internal.serialization.SerializationService) ManagedContext(com.hazelcast.core.ManagedContext)

Aggregations

ManagedContext (com.hazelcast.core.ManagedContext)1 ReadOnly (com.hazelcast.core.ReadOnly)1 SerializationService (com.hazelcast.internal.serialization.SerializationService)1