|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mediator<C extends Communication,T>
Mediator type to collect all communication sending request invoked by Presences and to delegate to the communication realizing subsystem.
Method Summary | ||
---|---|---|
|
addCommunicationListener(M messageProcessor)
Registers a CommunicationListener |
|
|
addMessageProcessorType(Class<M> messageProcessorType)
Registers a MessageProcessor type |
|
|
addMessageProcessorType(Class<M> messageProcessorType,
Object outerInstance)
Registers a MessageProcessor inner class type with the outer class instance |
|
void |
connect()
Sets up the connection with the underlaying transport layer |
|
void |
disconnect()
Dismisses the connection with the underlaying transport layer |
|
Iterable<CommunicationListener<T>> |
getCommunicationListeners()
Retrieves the list of registered CommunicationListeners |
|
|
getNewMessageProcessorInstances(C comm)
Creates an instances of evety registered MessageProcessor type and initiates them with the give Communication |
|
String |
mediatorEntity()
Retrieves the name of the current mediator's entity |
|
C |
prepareNewCommunication()
Factory method to initiate a communication |
|
C |
prepareNewCommunication(C comm,
String sender,
String flowID,
String recipient,
String subject,
int type)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(C comm,
String sender,
String flowID,
String recipient,
String subject,
int type,
Map<String,Object> parameters)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(Session session,
C comm,
String sender,
String flowID,
String recipient,
String subject,
int type)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(Session session,
C comm,
String sender,
String flowID,
String recipient,
String subject,
int type,
Map<String,Object> parameters)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(Session session,
String sender,
String flowID,
String recipient,
String subject,
int type)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(Session session,
String sender,
String flowID,
String recipient,
String subject,
int type,
Map<String,Object> parameters)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(String sender,
String flowID,
String recipient,
String subject,
int type)
Factory method to initiate a communication |
|
C |
prepareNewCommunication(String sender,
String flowID,
String recipient,
String subject,
int type,
Map<String,Object> parameters)
Factory method to initiate a communication |
|
void |
receiveCommunication(C comm)
Special entry point allowing to put insider messages into the Mediator |
|
|
removeCommunicationListener(M messageProcessor)
Deregisters a CommunicationListener |
|
void |
sendAGet(Session session,
String to,
String message,
String redirectMessage)
Sends a get-like message to the given recipient. |
|
void |
sendAGet(Session session,
String to,
String message,
String redirectMessage,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
|
C |
sendCommunication(C comm)
Sends a message. |
|
C |
sendCommunication(HashMap<String,Object> properties,
C comm)
Sends a message. |
|
C |
sendCommunication(long timeout,
C comm)
Sends a packet. |
|
C |
sendCommunication(long timeout,
HashMap<String,Object> properties,
C comm)
Sends a packet. |
|
void |
sendDelegatedGet(Session session,
String to,
String message,
String redirectEntityName,
String redirectMessage)
Sends a get-like message to the given recipient. |
|
void |
sendDelegatedGet(Session session,
String to,
String message,
String redirectEntityName,
String redirectMessage,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
|
C |
sendGet(Session session,
long timeout,
String to,
String message)
Sends a get-like message to the given recipient. |
|
C |
sendGet(Session session,
long timeout,
String to,
String message,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
|
C |
sendGet(Session session,
String to,
String message)
Sends a get-like message to the given recipient. |
|
C |
sendGet(Session session,
String to,
String message,
Map<String,Object> parameters)
Sends a get-like message to the given recipient. |
|
void |
sendSet(Session session,
String to,
String message)
Sends a set-like message to the given recipient. |
|
void |
sendSet(Session session,
String to,
String message,
Map<String,Object> parameters)
Sends a set-like message to the given recipient. |
|
void |
startListening()
Initiates the internal listening process of the given Mediator to start accept incoming packets |
Method Detail |
---|
void connect() throws BrillienException
BrillienException
void disconnect() throws BrillienException
BrillienException
void startListening() throws BrillienException
BrillienException
<M extends MessageProcessor> void addMessageProcessorType(Class<M> messageProcessorType)
<M extends MessageProcessor> void addMessageProcessorType(Class<M> messageProcessorType, Object outerInstance)
<M extends MessageProcessor> Iterable<M> getNewMessageProcessorInstances(C comm) throws BrillienException
BrillienException
<M extends CommunicationListener<T>> void addCommunicationListener(M messageProcessor)
<M extends CommunicationListener<T>> void removeCommunicationListener(M messageProcessor)
Iterable<CommunicationListener<T>> getCommunicationListeners()
C prepareNewCommunication() throws BrillienException
BrillienException
C prepareNewCommunication(String sender, String flowID, String recipient, String subject, int type) throws BrillienException
BrillienException
C prepareNewCommunication(C comm, String sender, String flowID, String recipient, String subject, int type) throws BrillienException
BrillienException
C prepareNewCommunication(Session session, String sender, String flowID, String recipient, String subject, int type) throws BrillienException
BrillienException
C prepareNewCommunication(Session session, C comm, String sender, String flowID, String recipient, String subject, int type) throws BrillienException
BrillienException
C prepareNewCommunication(String sender, String flowID, String recipient, String subject, int type, Map<String,Object> parameters) throws BrillienException
BrillienException
C prepareNewCommunication(C comm, String sender, String flowID, String recipient, String subject, int type, Map<String,Object> parameters) throws BrillienException
BrillienException
C prepareNewCommunication(Session session, String sender, String flowID, String recipient, String subject, int type, Map<String,Object> parameters) throws BrillienException
BrillienException
C prepareNewCommunication(Session session, C comm, String sender, String flowID, String recipient, String subject, int type, Map<String,Object> parameters) throws BrillienException
BrillienException
String mediatorEntity()
C sendCommunication(C comm) throws BrillienException
BrillienException
C sendCommunication(HashMap<String,Object> properties, C comm) throws BrillienException
BrillienException
C sendCommunication(long timeout, C comm) throws BrillienException
BrillienException
C sendCommunication(long timeout, HashMap<String,Object> properties, C comm) throws BrillienException
BrillienException
void receiveCommunication(C comm) throws BrillienException
BrillienException
C sendGet(Session session, String to, String message) throws BrillienException
BrillienException
C sendGet(Session session, long timeout, String to, String message) throws BrillienException
BrillienException
void sendAGet(Session session, String to, String message, String redirectMessage) throws BrillienException
BrillienException
void sendDelegatedGet(Session session, String to, String message, String redirectEntityName, String redirectMessage) throws BrillienException
BrillienException
void sendSet(Session session, String to, String message) throws BrillienException
BrillienException
C sendGet(Session session, String to, String message, Map<String,Object> parameters) throws BrillienException
BrillienException
C sendGet(Session session, long timeout, String to, String message, Map<String,Object> parameters) throws BrillienException
BrillienException
void sendAGet(Session session, String to, String message, String redirectMessage, Map<String,Object> parameters) throws BrillienException
BrillienException
void sendDelegatedGet(Session session, String to, String message, String redirectEntityName, String redirectMessage, Map<String,Object> parameters) throws BrillienException
BrillienException
void sendSet(Session session, String to, String message, Map<String,Object> parameters) throws BrillienException
BrillienException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |