L - defines the message listener typeA - defines the basic event typeM - defines the basic message typepublic interface ISubComponent<L,A,M> extends IComponent<L,M>
| Modifier and Type | Method and Description |
|---|---|
<X extends IComponentHandle<?,A,M>> |
getComponent()
Returns the component handle class, this is the users implementation of the component.
|
Message<A,M> |
getNextIncomingMessage()
Returns next message in pipe.
|
java.lang.String |
getParentId()
returns the id of parent component
|
boolean |
hasIncomingMessage()
Returns true if component has message in pipe.
|
void |
initEnv(java.lang.String parentId,
java.util.concurrent.BlockingQueue<Message<A,M>> messageQueue)
Set parentId and global message queue to component
|
boolean |
isBlocked()
Component is blocked when executed in thread.
|
void |
lock()
Lock Component for execution in thread.
|
void |
putIncomingMessage(Message<A,M> message)
Add new message to component.
|
void |
release()
Release lock after execution in thread.
|
<X extends IComponentHandle<?,A,M>> |
setComponent(X handle)
Set the component handle class.
|
getContext, getLocaleID, getResourceBundleLocation, isStarted, setLocaleID, setResourceBundleLocation, setStartedboolean hasIncomingMessage()
void putIncomingMessage(Message<A,M> message)
message, - the message.Message<A,M> getNextIncomingMessage() throws java.lang.InterruptedException
java.lang.InterruptedException - , the Exception will be thrown when main thread is interrupted and not delegated to the developerboolean isBlocked()
void lock()
void release()
java.lang.String getParentId()
void initEnv(java.lang.String parentId,
java.util.concurrent.BlockingQueue<Message<A,M>> messageQueue)
parentId, - the parent id of the current component (the perspective id)messageQueue, - the message queue<X extends IComponentHandle<?,A,M>> X getComponent()
, - the type<X extends IComponentHandle<?,A,M>> void setComponent(X handle)
handle, - the component, - the type