|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPublisher
Common interface for all implementations of a Publisher.
Field Summary | |
---|---|
static java.lang.String |
EVENT_SUBJECT
The constant representing the property for the event subject. |
static java.lang.String |
NATIVE_PUBLISHER
The constant representing the property for the native publisher. |
Method Summary | |
---|---|
java.lang.String |
getEventSubject()
Indicates the topic/subject on which the event will be fired. |
java.lang.Object |
getNativePub()
Extracts the native publisher used. |
void |
send(java.lang.Object pJavaBeanToSend)
Sends over the EAI infrastructure a java bean. |
void |
send(java.lang.Object pJavaBeanToSend,
ITracking pTracking)
Sends over the EAI infrastructure a java bean. |
void |
send(java.lang.String pSubject,
java.lang.Object pJavaBeanToSend)
Sends over the EAI infrastructure a java bean on a specific subject. |
void |
send(java.lang.String pSubject,
java.lang.Object pJavaBeanToSend,
ITracking pTracking)
Sends over the EAI infrastructure a java bean. |
java.lang.Object |
sendRequest(java.lang.Object pRequest)
Sends a request over the EAI infrastructure. |
void |
setNativePub(java.lang.Object pPublisher)
Assigns the native publisher to use. |
Field Detail |
---|
static final java.lang.String NATIVE_PUBLISHER
static final java.lang.String EVENT_SUBJECT
Method Detail |
---|
java.lang.String getEventSubject()
void send(java.lang.Object pJavaBeanToSend) throws RaccoonException
pJavaBeanToSend
- the java bean to send.
RaccoonException
- if the java bean couldn't be sent.void send(java.lang.String pSubject, java.lang.Object pJavaBeanToSend) throws RaccoonException
pSubject
- a MOM compliant subject/topic.pJavaBeanToSend
- the java bean to send over the MOM
RaccoonException
- if the message couldn't be sent over the MOMvoid send(java.lang.Object pJavaBeanToSend, ITracking pTracking) throws RaccoonException
pJavaBeanToSend
- the java bean to send.pTracking
- the tracking information to attach to the given message
RaccoonException
- if the java bean couldn't be sent.void send(java.lang.String pSubject, java.lang.Object pJavaBeanToSend, ITracking pTracking) throws RaccoonException
pSubject
- a MOM compliant subject/topic.pJavaBeanToSend
- the java bean to send.pTracking
- the tracking information to attach to the given message
RaccoonException
- if the java bean couldn't be sent.java.lang.Object sendRequest(java.lang.Object pRequest) throws RaccoonException
pRequest
- the java bean to send that represents the request.
RaccoonException
- if something goes wrongjava.lang.Object getNativePub()
void setNativePub(java.lang.Object pPublisher) throws RaccoonException, java.lang.IllegalArgumentException
pPublisher
- the native publisher to use for a specific MOM.
RaccoonException
- if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException
- if the parameter is null
, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |