use of com.hazelcast.map.EntryBackupProcessor in project eventapis by kloiasoft.
the class OperationTest method testReadWriteExternal.
@Test
public void testReadWriteExternal() throws Exception {
HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance();
IMap<Object, Object> test = hazelcastInstance.getMap("test");
test.executeOnKey("123", new EntryProcessor() {
@Override
public Object process(Map.Entry entry) {
entry.setValue("Blabla");
return entry;
}
@Override
public EntryBackupProcessor getBackupProcessor() {
return null;
}
});
System.out.println(test.get("123"));
}
use of com.hazelcast.map.EntryBackupProcessor in project hazelcast by hazelcast.
the class MultipleEntryWithPredicateOperation method getBackupOperation.
@Override
public Operation getBackupOperation() {
EntryBackupProcessor backupProcessor = entryProcessor.getBackupProcessor();
MultipleEntryWithPredicateBackupOperation backupOperation = new MultipleEntryWithPredicateBackupOperation(name, keys, backupProcessor, predicate);
backupOperation.setWanEventList(wanEventList);
return backupOperation;
}
use of com.hazelcast.map.EntryBackupProcessor in project hazelcast by hazelcast.
the class PartitionWideEntryOperation method getBackupOperation.
@Override
public Operation getBackupOperation() {
EntryBackupProcessor backupProcessor = entryProcessor.getBackupProcessor();
PartitionWideEntryBackupOperation backupOperation = null;
if (backupProcessor != null) {
backupOperation = new PartitionWideEntryBackupOperation(name, backupProcessor);
backupOperation.setWanEventList(wanEventList);
}
return backupOperation;
}
use of com.hazelcast.map.EntryBackupProcessor in project hazelcast by hazelcast.
the class PartitionWideEntryWithPredicateOperation method getBackupOperation.
@Override
public Operation getBackupOperation() {
EntryBackupProcessor backupProcessor = entryProcessor.getBackupProcessor();
PartitionWideEntryWithPredicateBackupOperation backupOperation = null;
if (backupProcessor != null) {
backupOperation = new PartitionWideEntryWithPredicateBackupOperation(name, backupProcessor, predicate);
backupOperation.setWanEventList(wanEventList);
}
return backupOperation;
}
Aggregations