Modifier and Type | Method and Description |
---|---|
Barrier.Options |
capacity(Long capacity) |
Barrier.Options |
container(String container) |
Barrier.Options |
shapes(List<Shape> shapes) |
Barrier.Options |
sharedName(String sharedName) |
public Barrier.Options shapes(List<Shape> shapes)
shapes
- The shape of each component in a value. Each shape must be 1 in the
first dimension. The length of this attr must be the same as the length of
component_types.public Barrier.Options capacity(Long capacity)
capacity
- The capacity of the barrier. The default capacity is MAX_INT32,
which is the largest capacity of the underlying queue.public Barrier.Options container(String container)
container
- If non-empty, this barrier is placed in the given container.
Otherwise, a default container is used.public Barrier.Options sharedName(String sharedName)
sharedName
- If non-empty, this barrier will be shared under the given name
across multiple sessions.Copyright © 2022. All rights reserved.