|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thinger.io.conduits.basic.BasicPullDrainContainer
public class BasicPullDrainContainer
A basic implementation of a conduit drain container interface for a poller. This is the interface that the Conduit uses. The container manages threading, queuing, etc. The end user might only use the PullDrain interface.
Version History
EPG - Adapted from autohit - 29 JUN 05
Constructor Summary | |
---|---|
BasicPullDrainContainer()
|
Method Summary | |
---|---|
void |
init(ConduitID yourId)
Initialize the PullDrain. |
boolean |
isDrained(Data n)
Tell if a Nubblet has drained. |
Data |
poll()
Poll for an item. |
Receipt |
postListener(Data n)
Listen for a post. |
void |
waitForDrain()
Wait for a drain. |
Data |
waitItem()
Wait for an item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicPullDrainContainer()
Method Detail |
---|
public void init(ConduitID yourId) throws SystemException
init
in interface PullDrain
yourId
- The ConduitID for this PullDrain.
SystemException
ConduitID
public Data poll() throws SystemException
poll
in interface PullDrain
SystemException
Data
public Data waitItem() throws SystemException
waitItem
in interface PullDrain
SystemException
Data
public Receipt postListener(Data n) throws SystemException
postListener
in interface PullDrainContainer
n
- The data to post.
SystemException
Data
public boolean isDrained(Data n) throws SystemException
isDrained
in interface PullDrainContainer
n
- The Nubblet to check.
SystemException
Data
public void waitForDrain()
waitForDrain
in interface PullDrainContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |