org.codehaus.gpars

groovyx.gpars.dataflow
[Groovy] Class KanbanTray

java.lang.Object
  groovyx.gpars.dataflow.KanbanTray

@groovy.transform.CompileStatic(value = TypeCheckingMode.PASS)
class KanbanTray

A KanbanTray is a container for passing a product around a {@KanbanLink}. A tray always stays within the same KanbanLink, which allows methods like KanbanTray#take#take, KanbanTray#bind#bind and KanbanTray#release#release to work directly on the respective streams without those being exposed to the operator. While full access to the inner workings remains available, it is advised to use the methods KanbanTray#take#take and KanbanTray#bind#bind.

Authors:
Dierk Koenig
See Also:
KanbanLink


Property Summary
KanbanLink link

java.lang.Object product

 
Constructor Summary
KanbanTray()

 
Method Summary
void bind(java.lang.Object product)

Put the product in the tray and send it downstream

java.lang.Object bitwiseNegate()

Alias for KanbanTray#release#release in order to write ˜ tray ("shake loose") *

void call(java.lang.Object product)

Alias for KanbanTray#bind#bind in order to write tray product *

void leftShift(java.lang.Object product)

Alias for KanbanTray#bind#bind in order to write tray << product *

void release()

Send the empty tray back upstream

java.lang.Object take()

Take the product from the tray and release the tray.

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

link

KanbanLink link


product

java.lang.Object product


 
Constructor Detail

KanbanTray

KanbanTray()


 
Method Detail

bind

void bind(java.lang.Object product)
Put the product in the tray and send it downstream. *


bitwiseNegate

java.lang.Object bitwiseNegate()
Alias for KanbanTray#release#release in order to write ˜ tray ("shake loose") *


call

void call(java.lang.Object product)
Alias for KanbanTray#bind#bind in order to write tray product *


leftShift

void leftShift(java.lang.Object product)
Alias for KanbanTray#bind#bind in order to write tray << product *


release

void release()
Send the empty tray back upstream. *


take

java.lang.Object take()
Take the product from the tray and release the tray. You can only do this once!
Returns:
the product


toString

java.lang.String toString()


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.