net.jxta.endpoint
Interface MessageReceiver
- All Superinterfaces:
- MessageTransport
public interface MessageReceiver
- extends MessageTransport
A MessageReceiver is a MessageTransport that is capable of receiving messages.
A MessageReceiver receives messages from the network and hands them to the
the EndpointService
for processing. A Message Receiver is known by
the EndpointAddresses
it provides.
- See Also:
EndpointAddress
,
MessageTransport
,
EndpointService
getPublicAddresses
Iterator<EndpointAddress> getPublicAddresses()
- Returns an Iterator of all of the
EndpointAddresses
by which this
MessageReceiver is reachable. The list is in order of
"preference" with the most "preferred" EndpointAddress being at the
beginning of the list.
- Returns:
- an Iterator of EndpointAddresses.