/** * Constructs a new {@link DefaultRedisList} instance. * * @param boundOps {@link BoundListOperations} for the value type of this list. * @param maxSize */ public DefaultRedisList(BoundListOperations<String, E> boundOps, int maxSize) { super(boundOps.getKey(), boundOps.getOperations()); listOps = boundOps; setMaxSize(maxSize); }
/** * Clear the Redis Queue specified by {@link #boundListOperations}. */ @ManagedOperation public void clearQueue() { this.boundListOperations.getOperations().delete(this.boundListOperations.getKey()); }
/** * Clear the Redis Queue specified by {@link #boundListOperations}. */ @ManagedOperation public void clearQueue() { this.boundListOperations.getOperations().delete(this.boundListOperations.getKey()); }
/** * Constructs a new {@link DefaultRedisList} instance. * * @param boundOps {@link BoundListOperations} for the value type of this list. * @param maxSize */ public DefaultRedisList(BoundListOperations<String, E> boundOps, int maxSize) { super(boundOps.getKey(), boundOps.getOperations()); listOps = boundOps; setMaxSize(maxSize); }
/** * Constructs a new {@link DefaultRedisList} instance. * * @param boundOps {@link BoundListOperations} for the value type of this list. * @param maxSize */ public DefaultRedisList(BoundListOperations<String, E> boundOps, int maxSize) { super(boundOps.getKey(), boundOps.getOperations()); listOps = boundOps; setMaxSize(maxSize); }
/** * Clear the Redis Queue specified by {@link #boundListOperations}. */ @ManagedOperation public void clearQueue() { this.boundListOperations.getOperations().delete(this.boundListOperations.getKey()); }
/** * Clear the Redis Queue specified by {@link #boundListOperations}. */ @ManagedOperation public void clearQueue() { this.boundListOperations.getOperations().delete(this.boundListOperations.getKey()); }