T - type of transported source.public class TransportMessage<T>
extends java.lang.Object
implements java.io.Serializable
TransportMessage used for transmitting some object between components of the system.
Class contains all needed service information to transport message.
excludes used to defines list of subscribers that excluded from event broadcast.
| Constructor and Description |
|---|
TransportMessage()
Create transport message without source and excludes.
|
TransportMessage(T source)
Create transport message with specified source and without excludes.
|
TransportMessage(T source,
java.util.Collection<java.net.URI> excludes)
Create transport massage with specified source and list of excludes.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.net.URI> |
getExcludes()
Return list of excluded subscribers.
|
T |
getSource()
Return
T object included in message. |
public TransportMessage()
public TransportMessage(T source)
source - source object for transporting.public TransportMessage(T source, java.util.Collection<java.net.URI> excludes)
source - source object for transporting.excludes - list with URIs of services that must be excluded from event broadcast.public T getSource()
T object included in message.T type.public java.util.Collection<java.net.URI> getExcludes()
null.