當前位置: 首頁>>代碼示例>>Java>>正文


Java ScanCursor類代碼示例

本文整理匯總了Java中com.lambdaworks.redis.ScanCursor的典型用法代碼示例。如果您正苦於以下問題:Java ScanCursor類的具體用法?Java ScanCursor怎麽用?Java ScanCursor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ScanCursor類屬於com.lambdaworks.redis包,在下文中一共展示了ScanCursor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: jscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
public Command<K, V, KeyScanCursor<String>> jscan(ScanCursor scanCursor, JScanArgs<K> scanArgs) {

        DisqueCommandArgs<K, V> args = new DisqueCommandArgs<K, V>(codec);
        if (scanArgs != null) {
            scanArgs.build(args);
        }

        if (scanCursor != null) {
            args.add(scanCursor.getCursor());
        }

        args.add(CommandKeyword.REPLY).add("id");

        return createCommand(JSCAN, new StringScanOutput<K, V>(codec), args);
    }
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:16,代碼來源:DisqueCommandBuilder.java

示例2: qscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
public Command<K, V, KeyScanCursor<K>> qscan(ScanCursor scanCursor, QScanArgs scanArgs) {
    DisqueCommandArgs<K, V> args = new DisqueCommandArgs<K, V>(codec);
    if (scanArgs != null) {
        scanArgs.build(args);
    }

    if (scanCursor != null) {
        args.add(scanCursor.getCursor());
    }

    return createCommand(QSCAN, new KeyScanOutput<K, V>(codec), args);
}
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:13,代碼來源:DisqueCommandBuilder.java

示例3: jscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
@Override
public RedisFuture<KeyScanCursor<String>> jscan(ScanCursor scanCursor) {
    return dispatch(commandBuilder.jscan(scanCursor, null));
}
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:5,代碼來源:DisqueAsyncCommandsImpl.java

示例4: qscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
@Override
public RedisFuture<KeyScanCursor<K>> qscan(ScanCursor scanCursor) {
    return dispatch(commandBuilder.qscan(scanCursor, null));
}
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:5,代碼來源:DisqueAsyncCommandsImpl.java

示例5: jscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
@Override
public Observable<KeyScanCursor<String>> jscan(ScanCursor scanCursor) {
    return createObservable(() -> commandBuilder.jscan(scanCursor, null));
}
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:5,代碼來源:DisqueReactiveCommandsImpl.java

示例6: qscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
@Override
public Observable<KeyScanCursor<K>> qscan(ScanCursor scanCursor) {
    return createObservable(() -> commandBuilder.qscan(scanCursor, null));
}
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:5,代碼來源:DisqueReactiveCommandsImpl.java

示例7: qscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate the keys space.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
KeyScanCursor<K> qscan(ScanCursor scanCursor);
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:8,代碼來源:DisqueQueueCommands.java

示例8: jscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate all the existing queues in the local node returning the job id's.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
KeyScanCursor<String> jscan(ScanCursor scanCursor);
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:8,代碼來源:DisqueJobCommands.java

示例9: jscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate all the existing queues in the local node returning the job id's.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
Observable<KeyScanCursor<String>> jscan(ScanCursor scanCursor);
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:8,代碼來源:DisqueJobReactiveCommands.java

示例10: qscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate the keys space.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
Observable<KeyScanCursor<K>> qscan(ScanCursor scanCursor);
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:8,代碼來源:DisqueQueueReactiveCommands.java

示例11: qscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate the keys space.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
RedisFuture<KeyScanCursor<K>> qscan(ScanCursor scanCursor);
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:8,代碼來源:DisqueQueueAsyncCommands.java

示例12: jscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate all the existing queues in the local node returning the job id's.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
RedisFuture<KeyScanCursor<String>> jscan(ScanCursor scanCursor);
 
開發者ID:mp911de,項目名稱:spinach,代碼行數:8,代碼來源:DisqueJobAsyncCommands.java

示例13: hscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate hash fields and associated values.
 *
 * @param key the key
 * @param scanCursor cursor to resume from a previous scan, must not be {@literal null}
 * @param scanArgs scan arguments
 * @return MapScanCursor&lt;K, V&gt; map scan cursor.
 */
MapScanCursor<K, V> hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs);
 
開發者ID:lettuce-io,項目名稱:lettuce-core,代碼行數:10,代碼來源:RedisHashCommands.java

示例14: sscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate Set elements.
 *
 * @param key the key
 * @param scanCursor cursor to resume from a previous scan, must not be {@literal null}
 * @param scanArgs scan arguments
 * @return ValueScanCursor&lt;V&gt; scan cursor.
 */
ValueScanCursor<V> sscan(K key, ScanCursor scanCursor, ScanArgs scanArgs);
 
開發者ID:lettuce-io,項目名稱:lettuce-core,代碼行數:10,代碼來源:RedisSetCommands.java

示例15: hscan

import com.lambdaworks.redis.ScanCursor; //導入依賴的package包/類
/**
 * Incrementally iterate hash fields and associated values.
 *
 * @param key the key
 * @param scanCursor cursor to resume from a previous scan, must not be {@literal null}
 * @param scanArgs scan arguments
 * @return MapScanCursor&lt;K, V&gt; map scan cursor.
 */
Observable<MapScanCursor<K, V>> hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs);
 
開發者ID:lettuce-io,項目名稱:lettuce-core,代碼行數:10,代碼來源:RedisHashReactiveCommands.java


注:本文中的com.lambdaworks.redis.ScanCursor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。