Barrier.Options

public static class Barrier.Options

Optional attributes for Barrier

Public Methods

Barrier.Options
capacity(Long capacity)
Barrier.Options
container(String container)
Barrier.Options
shapes(List<Shape> shapes)
Barrier.Options
sharedName(String sharedName)

Inherited Methods

Public Methods

public Barrier.Options capacity (Long capacity)

Parameters
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)

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

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

Parameters
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 sharedName (String sharedName)

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