public interface IComponentAdapter
Modifier and Type | Field and Description |
---|---|
static ThreadLocal<IComponentAdapter> |
LOCAL
The currently executing component (if any).
|
Modifier and Type | Method and Description |
---|---|
void |
block(Object monitor)
Block the current thread and allow execution on other threads.
|
IComponentIdentifier |
getComponentIdentifier()
Return the native component-identifier that allows to send
messages to this component.
|
IComponentDescription |
getDescription()
Return the component description.
|
Exception |
getException()
Get the exception.
|
Logger |
getLogger()
Get the component logger.
|
IExternalAccess |
getParent()
Get the parent component.
|
void |
invokeLater(Runnable action)
Execute an action on the component thread.
|
boolean |
isExternalThread()
Check if the external thread is accessing.
|
void |
unblock(Object monitor)
Unblock the thread waiting for the given monitor
and cease execution on the current thread.
|
void |
wakeup()
Called by the component when it probably awoke from an idle state.
|
static final ThreadLocal<IComponentAdapter> LOCAL
void block(Object monitor)
monitor
- The monitor to wait for.void unblock(Object monitor)
monitor
- The monitor to notify.void wakeup() throws ComponentTerminatedException
ComponentTerminatedException
void invokeLater(Runnable action)
action
- The action to be executed on the component thread.boolean isExternalThread()
IComponentIdentifier getComponentIdentifier() throws ComponentTerminatedException
ComponentTerminatedException
IComponentDescription getDescription()
Logger getLogger()
IExternalAccess getParent()
Exception getException()
Copyright © 2013. All Rights Reserved.