@Override public CollectionFuture<Boolean> asyncSopCreate(String key, ElementValueType type, CollectionAttributes attributes) { int flag = CollectionTranscoder.examineFlags(type); boolean noreply = false; CollectionCreate setCreate = new SetCreate(flag, attributes.getExpireTime(), attributes.getMaxCount(), attributes.getReadable(), noreply); return asyncCollectionCreate(key, setCreate); }
@Override public CollectionFuture<Boolean> asyncMopCreate(String key, ElementValueType type, CollectionAttributes attributes) { int flag = CollectionTranscoder.examineFlags(type); boolean noreply = false; CollectionCreate mapCreate = new MapCreate(flag, attributes.getExpireTime(), attributes.getMaxCount(), attributes.getReadable(), noreply); return asyncCollectionCreate(key, mapCreate); }
@Override public CollectionFuture<Boolean> asyncBopCreate(String key, ElementValueType valueType, CollectionAttributes attributes) { int flag = CollectionTranscoder.examineFlags(valueType); boolean noreply = false; CollectionCreate bTreeCreate = new BTreeCreate(flag, attributes.getExpireTime(), attributes.getMaxCount(), attributes.getOverflowAction(), attributes.getReadable(), noreply); return asyncCollectionCreate(key, bTreeCreate); }
@Override public CollectionFuture<Boolean> asyncLopCreate(String key, ElementValueType type, CollectionAttributes attributes) { int flag = CollectionTranscoder.examineFlags(type); boolean noreply = false; CollectionCreate listCreate = new ListCreate(flag, attributes.getExpireTime(), attributes.getMaxCount(), attributes.getOverflowAction(), attributes.getReadable(), noreply); return asyncCollectionCreate(key, listCreate); }