public RedissonSetMultimapValues(Codec codec, CommandAsyncExecutor commandExecutor, String name, String timeoutSetName, Object key) { super(codec, commandExecutor, name); this.timeoutSetName = timeoutSetName; this.key = key; this.set = new RedissonSet<V>(codec, commandExecutor, name, null); }
public RedissonTransactionalSet(CommandAsyncExecutor commandExecutor, String name, List<TransactionalOperation> operations, long timeout, AtomicBoolean executed, String transactionId) { super(commandExecutor, name, null); this.executed = executed; RedissonSet<V> innerSet = new RedissonSet<V>(commandExecutor, name, null); this.transactionalSet = new TransactionalSet<V>(commandExecutor, timeout, operations, innerSet, transactionId); }
public RedissonTransactionalSet(Codec codec, CommandAsyncExecutor commandExecutor, String name, List<TransactionalOperation> operations, long timeout, AtomicBoolean executed, String transactionId) { super(codec, commandExecutor, name, null); this.executed = executed; RedissonSet<V> innerSet = new RedissonSet<V>(codec, commandExecutor, name, null); this.transactionalSet = new TransactionalSet<V>(commandExecutor, timeout, operations, innerSet, transactionId); }
public RedissonTransactionalSet(CommandAsyncExecutor commandExecutor, String name, List<TransactionalOperation> operations, long timeout, AtomicBoolean executed, String transactionId) { super(commandExecutor, name, null); this.executed = executed; RedissonSet<V> innerSet = new RedissonSet<V>(commandExecutor, name, null); this.transactionalSet = new TransactionalSet<V>(commandExecutor, timeout, operations, innerSet, transactionId); }
@Override public <V> RSetRx<V> getSet(String name) { RedissonSet<V> set = new RedissonSet<V>(commandExecutor, name, null); return RxProxyBuilder.create(commandExecutor, set, new RedissonSetRx<V>(set, this), RSetRx.class); }
@Override public <V> RSetReactive<V> getSet(String name, Codec codec) { RedissonSet<V> set = new RedissonSet<V>(codec, executorService, name, null); return ReactiveProxyBuilder.create(executorService, set, new RedissonSetReactive<V>(set, null), RSetReactive.class); }
@Override public <V> RSetRx<V> getSet(String name) { RedissonSet<V> set = new RedissonSet<V>(executorService, name, null); return RxProxyBuilder.create(executorService, set, new RedissonSetRx<V>(set, null), RSetRx.class); }
@Override public <V> RSetReactive<V> getSet(String name) { RedissonSet<V> set = new RedissonSet<V>(commandExecutor, name, null); return ReactiveProxyBuilder.create(commandExecutor, set, new RedissonSetReactive<V>(set, this), RSetReactive.class); }
@Override public <V> RSetReactive<V> getSet(String name) { RedissonSet<V> set = new RedissonSet<V>(commandExecutor, name, null); return ReactiveProxyBuilder.create(commandExecutor, set, new RedissonSetReactive<V>(set, this), RSetReactive.class); }
@Override public <V> RSetReactive<V> getSet(String name) { RedissonSet<V> set = new RedissonSet<V>(executorService, name, null); return ReactiveProxyBuilder.create(executorService, set, new RedissonSetReactive<V>(set, null), RSetReactive.class); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RSet<Object> set = new RedissonSet<Object>(codec, commandExecutor, name, null); getLock(set, commandExecutor, value).unlockAsync(); }
@Override public <V> RSetReactive<V> getSet(String name, Codec codec) { RedissonSet<V> set = new RedissonSet<V>(codec, commandExecutor, name, null); return ReactiveProxyBuilder.create(commandExecutor, set, new RedissonSetReactive<V>(set, this), RSetReactive.class); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RSet<Object> set = new RedissonSet<Object>(codec, commandExecutor, name, null); getLock(set, commandExecutor, value).unlockAsync(); }
@Override public <V> RSetReactive<V> getSet(String name, Codec codec) { RedissonSet<V> set = new RedissonSet<V>(codec, executorService, name, null); return ReactiveProxyBuilder.create(executorService, set, new RedissonSetReactive<V>(set, null), RSetReactive.class); }
@Override public <V> RSetRx<V> getSet(String name, Codec codec) { RedissonSet<V> set = new RedissonSet<V>(codec, commandExecutor, name, null); return RxProxyBuilder.create(commandExecutor, set, new RedissonSetRx<V>(set, this), RSetRx.class); }
@Override public void rollback(CommandAsyncExecutor commandExecutor) { RSet<Object> set = new RedissonSet<Object>(codec, commandExecutor, name, null); RSet<Object> destinationSet = new RedissonSet<Object>(codec, commandExecutor, destinationName, null); getLock(destinationSet, commandExecutor, value).unlockAsync(threadId); getLock(set, commandExecutor, value).unlockAsync(threadId); }
@Override public <V> RSetReactive<V> getSet(String name, Codec codec) { RedissonSet<V> set = new RedissonSet<V>(codec, commandExecutor, name, null); return ReactiveProxyBuilder.create(commandExecutor, set, new RedissonSetReactive<V>(set, this), RSetReactive.class); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RSet<Object> set = new RedissonSet<Object>(codec, commandExecutor, name, null); set.removeAsync(value); getLock(set, commandExecutor, value).unlockAsync(); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RSet<Object> set = new RedissonSet<Object>(codec, commandExecutor, name, null); RSet<Object> destinationSet = new RedissonSet<Object>(codec, commandExecutor, destinationName, null); set.moveAsync(destinationSet.getName(), value); getLock(destinationSet, commandExecutor, value).unlockAsync(threadId); getLock(set, commandExecutor, value).unlockAsync(threadId); }
@Override public void commit(CommandAsyncExecutor commandExecutor) { RSet<Object> set = new RedissonSet<Object>(codec, commandExecutor, name, null); set.addAsync(value); getLock(set, commandExecutor, value).unlockAsync(); }