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