|
![]() Quark Platform Documentation Version 1.7.1_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.module.Cal.Experimental.Concurrent.CAL_BlockingQueue.Functions
public static final class CAL_BlockingQueue.Functions
This inner class (Functions) contains constants and methods related to binding to CAL functions in the Cal.Experimental.Concurrent.BlockingQueue module.
| Field Summary | |
|---|---|
static QualifiedName |
makeBlockingQueue
Name binding for function: makeBlockingQueue. |
static QualifiedName |
put
Name binding for function: put. |
static QualifiedName |
take
Name binding for function: take. |
| Constructor Summary | |
|---|---|
CAL_BlockingQueue.Functions()
|
|
| Method Summary | |
|---|---|
static SourceModel.Expr |
makeBlockingQueue(int maxSize)
|
static SourceModel.Expr |
makeBlockingQueue(SourceModel.Expr maxSize)
This creates a blocking queue that can hold at most size elements. |
static SourceModel.Expr |
put(SourceModel.Expr queue,
SourceModel.Expr item)
Put an element on the queue. |
static SourceModel.Expr |
take(SourceModel.Expr queue)
Takes an item from a queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final QualifiedName makeBlockingQueue
makeBlockingQueue(org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName put
put(org.openquark.cal.compiler.SourceModel.Expr, org.openquark.cal.compiler.SourceModel.Expr)public static final QualifiedName take
take(org.openquark.cal.compiler.SourceModel.Expr)| Constructor Detail |
|---|
public CAL_BlockingQueue.Functions()
| Method Detail |
|---|
public static final SourceModel.Expr makeBlockingQueue(SourceModel.Expr maxSize)
maxSize - (CAL type: Cal.Core.Prelude.Int)
the maximum size of the queue
Cal.Experimental.Concurrent.BlockingQueue.BlockingQueue a)public static final SourceModel.Expr makeBlockingQueue(int maxSize)
maxSize -
makeBlockingQueue(org.openquark.cal.compiler.SourceModel.Expr)
public static final SourceModel.Expr put(SourceModel.Expr queue,
SourceModel.Expr item)
queue - (CAL type: Cal.Experimental.Concurrent.BlockingQueue.BlockingQueue a)
the queue to add toitem - (CAL type: a)
the item to add
())public static final SourceModel.Expr take(SourceModel.Expr queue)
queue - (CAL type: Cal.Experimental.Concurrent.BlockingQueue.BlockingQueue a)
the queue to take an item from.
a)
|
![]() Quark Platform Documentation Version 1.7.1_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||