Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.hermes.broker.http.* (1)

com.aendvari.hermes.broker: Javadoc index of package com.aendvari.hermes.broker.


Package Samples:

com.aendvari.hermes.broker.http: This package contains several classes for the handling of messages.  

Classes:

Message: Represents a single message. Messages are sent to listeners using a publish/subscribe model. The MessageBroker class handles the dispatching and listener registration. A message may have several properties. The properties are stored in a ( com.aendvari.common.properties.Properties ) object. This allows the properties to be stored in a hierarchy. Every message may have an optional "reply to" value set. The value is the MessageTopic to send a response message to. Typically, the sender of the original message has subscribed to this topic. Other listeners may subscribe with the same topic. The content ...
MessageBrokerConnection: Represents a client connection to a MessageBroker . The connection has a MessageBrokerContext associated with it. The context contains client specific data (such as HTTP information, see com.aendvari.hermes.broker.http.HttpMessageBrokerContext ). This context is provided with each published Message . The MessageBroker and MessageBrokerConnection provide a simple transaction facility. Messages published while the transaction is active are held until the transaction is commited or rolled back. When commited, all the messages published are sent. When rolled back, all the messages are ignored.
MessageRequestor: Provides a mechanism to publish a message and listen for a response. This effectively makes the message publish/listen process work similar to a method call. The listener receiving the initial message would check the "replyTo" property of the Message it receives. If a MessageTopic is provided, then a response message is expected. The properties of the published and return messages must be agreed upon by both parties.
MessageBrokerContext: Provides context information for a MessageBroker . A context may have several properties. The properties are stored in a ( com.aendvari.common.properties.Properties ) object, which allows them to be stored in a hierarchy. The MessageBrokerContext may be subclassed to provide application specific information (for example, HTTP information, see com.aendvari.hermes.broker.http.HttpMessageBrokerContext ).
MessageTransaction: Provides a mechanism to collect several messages published in succession. The transaction may be commited or rolled back at any time. When commited, the messages are sent to any subscribed listeners (see MessageListener ). When rolled back, all messages published during the transaction are thrown away and not sent to the listeners.
HttpMessageBrokerContext: Extends com.aendvari.hermes.broker.MessageBrokerContext to include HTTP/Servlet specific information. This class also provides an interface for accessing HTTP/Servlet information from a MessageBrokerContext's properties.
MessageBatch: Provides a mechanism to collect several messages published in succession. The messages may then sent to any subscribed listeners (see MessageListener ). If the batch is not sent, the messages are thrown away and not sent to the listeners.
MessageBroker: Handles the subscription, publishing, and dispatching of messages. Clients access the broker through MessageBrokerConnections . The connection provides the facilities for the client to subscribe and publish to the broker.
MessageLogger: Provides a mechanism for recording published messages. As messages are published to the broker, the logging system can be used to record information about those messages. This information can be used for analysis and debugging.
MessageListener: Defines an interface for message listeners. A MessageListener is subscribed to a topic of an MessageBroker .
MessageTopic: Represents a message topic. Topics may only be used with the MessageBroker they are created by.

Home | Contact Us | Privacy Policy | Terms of Service