@Operator public final class BarrierClose extends PrimitiveOp
This operation signals that no more new elements will be inserted in the given barrier. Subsequent InsertMany that try to introduce a new key will fail. Subsequent InsertMany operations that just add missing components to already existing elements will continue to succeed. Subsequent TakeMany operations will continue to succeed if sufficient completed elements remain in the barrier. Subsequent TakeMany operations that would block will fail immediately.
Modifier and Type | Class and Description |
---|---|
static class |
BarrierClose.Options
Optional attributes for
BarrierClose |
operation
Modifier and Type | Method and Description |
---|---|
static BarrierClose.Options |
cancelPendingEnqueues(Boolean cancelPendingEnqueues) |
static BarrierClose |
create(Scope scope,
Operand<String> handle,
BarrierClose.Options... options)
Factory method to create a class wrapping a new BarrierClose operation.
|
equals, hashCode, op, toString
public static BarrierClose create(Scope scope, Operand<String> handle, BarrierClose.Options... options)
scope
- current scopehandle
- The handle to a barrier.options
- carries optional attributes valuespublic static BarrierClose.Options cancelPendingEnqueues(Boolean cancelPendingEnqueues)
cancelPendingEnqueues
- If true, all pending enqueue requests that are
blocked on the barrier's queue will be canceled. InsertMany will fail, even
if no new key is introduced.Copyright © 2022. All rights reserved.