@Override public <K, V> TransactionalMultiMap<K, V> getMultiMap(String name) { return transactionContext().getMultiMap(name); }
@Override public <K, V> TransactionalMultiMap<K, V> getMultiMap(String name) { return transactionContext().getMultiMap(name); }
@Override public <K, V> TransactionalMultiMap<K, V> getTransactionalMultiMap(String name) { TransactionContext txContext = getTransactionContext(); return txContext.getMultiMap(name); }
@Override public <K, V> TransactionalMultiMap<K, V> getMultiMap(String name) { return transactionContext().getMultiMap(name); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.put(parameters.key, parameters.value); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.size(); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.remove(parameters.key, parameters.value); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.valueCount(parameters.key); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.put(parameters.key, parameters.value); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); Collection<Object> collection = multiMap.remove(parameters.key); List<Data> list = new ArrayList<Data>(collection.size()); for (Object o : collection) { list.add(serializationService.toData(o)); } return list; }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); Collection<Object> collection = multiMap.get(parameters.key); List<Data> list = new ArrayList<Data>(collection.size()); for (Object o : collection) { list.add(serializationService.toData(o)); } return list; }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.valueCount(parameters.key); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.size(); }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); Collection<Object> collection = multiMap.get(parameters.key); List<Data> list = new ArrayList<Data>(collection.size()); for (Object o : collection) { list.add(serializationService.toData(o)); } return list; }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); Collection<Object> collection = multiMap.remove(parameters.key); List<Data> list = new ArrayList<Data>(collection.size()); for (Object o : collection) { list.add(serializationService.toData(o)); } return list; }
@Override protected Object innerCall() throws Exception { final TransactionContext context = endpoint.getTransactionContext(parameters.txnId); TransactionalMultiMap<Object, Object> multiMap = context.getMultiMap(parameters.name); return multiMap.remove(parameters.key, parameters.value); }