Search in sources :

Example 1 with GridCacheQueueAdapter

use of org.apache.ignite.internal.processors.datastructures.GridCacheQueueAdapter in project ignite by apache.

the class IgniteCollectionAbstractTest method getQueueCache.

/**
     * @param queue Ignite queue.
     * @return Cache configuration.
     */
protected CacheConfiguration getQueueCache(IgniteQueue queue) {
    GridCacheQueueAdapter delegate = GridTestUtils.getFieldValue(queue, "delegate");
    GridCacheAdapter cache = GridTestUtils.getFieldValue(delegate, GridCacheQueueAdapter.class, "cache");
    return cache.configuration();
}
Also used : GridCacheAdapter(org.apache.ignite.internal.processors.cache.GridCacheAdapter) GridCacheQueueAdapter(org.apache.ignite.internal.processors.datastructures.GridCacheQueueAdapter)

Aggregations

GridCacheAdapter (org.apache.ignite.internal.processors.cache.GridCacheAdapter)1 GridCacheQueueAdapter (org.apache.ignite.internal.processors.datastructures.GridCacheQueueAdapter)1