RandomShuffleQueue.Options

public static class RandomShuffleQueue.Options

Optional attributes for RandomShuffleQueue

Public Methods

RandomShuffleQueue.Options
capacity(Long capacity)
RandomShuffleQueue.Options
container(String container)
RandomShuffleQueue.Options
minAfterDequeue(Long minAfterDequeue)
RandomShuffleQueue.Options
seed(Long seed)
RandomShuffleQueue.Options
seed2(Long seed2)
RandomShuffleQueue.Options
shapes(List<Shape> shapes)
RandomShuffleQueue.Options
sharedName(String sharedName)

Inherited Methods

Public Methods

public RandomShuffleQueue.Options capacity (Long capacity)

Parameters
capacity The upper bound on the number of elements in this queue. Negative numbers mean no limit.

public RandomShuffleQueue.Options container (String container)

Parameters
container If non-empty, this queue is placed in the given container. Otherwise, a default container is used.

public RandomShuffleQueue.Options minAfterDequeue (Long minAfterDequeue)

Parameters
minAfterDequeue Dequeue will block unless there would be this many elements after the dequeue or the queue is closed. This ensures a minimum level of mixing of elements.

public RandomShuffleQueue.Options seed (Long seed)

Parameters
seed If either seed or seed2 is set to be non-zero, the random number generator is seeded by the given seed. Otherwise, a random seed is used.

public RandomShuffleQueue.Options seed2 (Long seed2)

Parameters
seed2 A second seed to avoid seed collision.

public RandomShuffleQueue.Options shapes (List<Shape> shapes)

Parameters
shapes The shape of each component in a value. The length of this attr must be either 0 or the same as the length of component_types. If the length of this attr is 0, the shapes of queue elements are not constrained, and only one element may be dequeued at a time.

public RandomShuffleQueue.Options sharedName (String sharedName)

Parameters
sharedName If non-empty, this queue will be shared under the given name across multiple sessions.