Package jadex.bridge.component.impl
Interface IInternalMessageFeature
-
- All Known Implementing Classes:
MessageComponentFeature
public interface IInternalMessageFeature
A component feature for message-based communication.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jadex.commons.future.ISubscriptionIntermediateFuture<MessageEvent>
getMessageEvents()
Listen to message events (send and receive).IInputConnection
getParticipantInputConnection(int conid, IComponentIdentifier initiator, IComponentIdentifier participant, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Get the participant input connection.IOutputConnection
getParticipantOutputConnection(int conid, IComponentIdentifier initiator, IComponentIdentifier participant, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Get the participant output connection.InputConnection
internalCreateInputConnection(IComponentIdentifier sender, IComponentIdentifier receiver, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create a virtual input connection.OutputConnection
internalCreateOutputConnection(IComponentIdentifier sender, IComponentIdentifier receiver, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create a virtual output connection.void
messageArrived(IMsgHeader header, byte[] encryptedbody)
Inform the component that a message has arrived.void
messageArrived(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object body)
Inform the component that a message has arrived.jadex.commons.future.IFuture<java.lang.Void>
sendToTransports(IMsgHeader header, byte[] encryptedheader, byte[] encryptedbody)
Forwards the prepared message to the transport layer.void
streamArrived(IConnection con)
Inform the component that a stream has arrived.
-
-
-
Method Detail
-
sendToTransports
jadex.commons.future.IFuture<java.lang.Void> sendToTransports(IMsgHeader header, byte[] encryptedheader, byte[] encryptedbody)
Forwards the prepared message to the transport layer.- Parameters:
header
- The message header.encryptedheader
- The encrypted header.encryptedbody
- The encrypted message body.- Returns:
- Null, when done, exception if failed.
-
messageArrived
void messageArrived(IMsgHeader header, byte[] encryptedbody)
Inform the component that a message has arrived. Called from transports (i.e. remote messages).- Parameters:
header
- The message header.bodydata
- The encrypted message that arrived.
-
messageArrived
void messageArrived(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object body)
Inform the component that a message has arrived. Called directly for intra-platform message delivery (i.e. local messages) and indirectly for remote messages.- Parameters:
secinfos
- The security meta infos.header
- The message header.body
- The message that arrived.
-
streamArrived
void streamArrived(IConnection con)
Inform the component that a stream has arrived.- Parameters:
con
- The stream that arrived.
-
getParticipantInputConnection
IInputConnection getParticipantInputConnection(int conid, IComponentIdentifier initiator, IComponentIdentifier participant, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Get the participant input connection.
-
getParticipantOutputConnection
IOutputConnection getParticipantOutputConnection(int conid, IComponentIdentifier initiator, IComponentIdentifier participant, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Get the participant output connection.
-
internalCreateOutputConnection
OutputConnection internalCreateOutputConnection(IComponentIdentifier sender, IComponentIdentifier receiver, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create a virtual output connection.
-
internalCreateInputConnection
InputConnection internalCreateInputConnection(IComponentIdentifier sender, IComponentIdentifier receiver, java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create a virtual input connection.
-
getMessageEvents
jadex.commons.future.ISubscriptionIntermediateFuture<MessageEvent> getMessageEvents()
Listen to message events (send and receive).
-
-