public static class RandomShuffleQueue.Options extends Object
RandomShuffleQueue
Modifier and Type | Method and Description |
---|---|
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) |
public RandomShuffleQueue.Options shapes(List<Shape> shapes)
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 capacity(Long capacity)
capacity
- The upper bound on the number of elements in this queue.
Negative numbers mean no limit.public RandomShuffleQueue.Options minAfterDequeue(Long minAfterDequeue)
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)
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)
seed2
- A second seed to avoid seed collision.public RandomShuffleQueue.Options container(String container)
container
- If non-empty, this queue is placed in the given container.
Otherwise, a default container is used.public RandomShuffleQueue.Options sharedName(String sharedName)
sharedName
- If non-empty, this queue will be shared under the given name
across multiple sessions.Copyright © 2022. All rights reserved.