|
||||||||||
| 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 PullDrainyourId - The ConduitID for this PullDrain.
SystemExceptionConduitID
public Data poll()
throws SystemException
poll in interface PullDrainSystemExceptionData
public Data waitItem()
throws SystemException
waitItem in interface PullDrainSystemExceptionData
public Receipt postListener(Data n)
throws SystemException
postListener in interface PullDrainContainern - The data to post.
SystemExceptionData
public boolean isDrained(Data n)
throws SystemException
isDrained in interface PullDrainContainern - The Nubblet to check.
SystemExceptionDatapublic void waitForDrain()
waitForDrain in interface PullDrainContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||