
public class DefaultBroker extends Object implements IMessageBroker
IMessageBroker. This
class maps the given messages to universAAL objects, thus routes the messages
for the desired objects.| Modifier and Type | Field and Description |
|---|---|
static int |
CONTEXTPUBLISH
The type identifier of a ContextPublish
|
static int |
SERVICECALL
The type identifier of a ServiceCall
|
| Constructor and Description |
|---|
DefaultBroker(IServiceCall service,
IContextPublisher context) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object key,
Object req) |
Collection<?> |
SendNewMessage(Object type,
Object key,
Collection<?> args)
This method sends a new message to the broker.
|
public static final int SERVICECALL
public static final int CONTEXTPUBLISH
public DefaultBroker(IServiceCall service, IContextPublisher context)
public final Collection<?> SendNewMessage(Object type, Object key, Collection<?> args) throws AdapterException
IMessageBrokerSendNewMessage in interface IMessageBrokertype - Type of the message, for example ServiceCall or ContextPublishkey - Key to identify the concrete objectargs - Arguments forwarded to universAAlAdapterExceptionCopyright © 2018 universAAL Consortium. All rights reserved.