|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The MessageBroker has endpoints on one end and services on the other. The Service interface defines the contract between the MessageBroker and all Service implementations.
| Method Summary | |
Destination |
getDestination(Message message)
Retrieves the destination in this service for which the given message is intended. |
String |
getId()
Returns the id for the service. |
MessageBroker |
getMessageBroker()
All services must be managed by a single MessageBroker, and must be capable of returning a reference to that broker. |
flex.messaging.config.ServiceSettings |
getSettings()
Returns the settings used to initialize the service. |
boolean |
isSupportedMessage(Message message)
Determines whether this Service is capable of handling a given Message instance. |
boolean |
isSupportedMessageType(String messageClassName)
Determines whether this Service is capable of handling messages of a given type. |
Object |
serviceCommand(CommandMessage message)
Handles a command routed to the service by the MessageBroker. |
Object |
serviceMessage(Message message)
Handles a message routed to the service by the MessageBroker. |
void |
setId(String id)
Sets the id for the service. |
void |
start()
Performs any startup actions necessary after the service has been added to the broker. |
void |
stop()
Performs any actions necessary before removing the service from the broker. |
| Methods inherited from interface flex.management.Manageable |
getControl, isManaged, setControl, setManaged |
| Method Detail |
public String getId()
public void setId(String id)
id - The id for the service.public MessageBroker getMessageBroker()
public Destination getDestination(Message message)
public Object serviceMessage(Message message)
message - The message sent by the MessageBrokerpublic Object serviceCommand(CommandMessage message)
message - The message sent by the MessageBrokerpublic boolean isSupportedMessage(Message message)
public boolean isSupportedMessageType(String messageClassName)
public flex.messaging.config.ServiceSettings getSettings()
public void start()
public void stop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||