|
Project JXTA | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Messenger | |
---|---|
net.jxta.endpoint | Provides interfaces and classes used for the addressing, filtering, sending, and receiving of messages within JXTA. |
net.jxta.socket | The socket package provides interface ala Socket
over JXTA pipes. |
net.jxta.util | A collection of utility classes used by the JXTA implementation and/or useful to users of the JXTA API. |
net.jxta.util.endpoint |
Uses of Messenger in net.jxta.endpoint |
---|
Classes in net.jxta.endpoint that implement Messenger | |
---|---|
class |
AbstractMessenger
An AbstractMessenger is used to implement messengers (for example, by transport modules). |
class |
AsyncChannelMessenger
|
class |
ChannelMessenger
A Channel Messenger provides an exclusive interface to the shared messenger. |
class |
ThreadedMessenger
This is a messenger meant to be shared by multiple channels and automatically distribute the available bandwith among the channels. |
Methods in net.jxta.endpoint that return Messenger | |
---|---|
Messenger |
EndpointService.getCanonicalMessenger(EndpointAddress addr,
Object hint)
Creates and maps a canonical messenger to the specified destination. |
Messenger |
AsyncChannelMessenger.getChannelMessenger(PeerGroupID redirection,
String service,
String serviceParam)
If applicable, returns another messenger that will send messages to the same destination address than this one, but with the specified default service and serviceParam, possibly rewriting addresses to ensure delivery through the specified redirection. This is not generaly usefull to applications and most messengers will return null. This method is needed by the EndpointService when interacting with Messengers provided by Transport modules. If you are not implementing a Transport module, then you can ignore this method. Important: The channel so obtained is not configured to support the sendMessage(Message, String, String,
OutgoingMessageEventListener) legacy method. If use of this method is desired, ChannelMessenger.setMessageWatcher(net.jxta.endpoint.ListenerAdaptor)
must be used first.
By default a channel refuses to make a channel. |
Messenger |
ChannelMessenger.getChannelMessenger(PeerGroupID redirection,
String service,
String serviceParam)
If applicable, returns another messenger that will send messages to the same destination address than this one, but with the specified default service and serviceParam, possibly rewriting addresses to ensure delivery through the specified redirection. By default a channel refuses to make a channel. |
Messenger |
Messenger.getChannelMessenger(PeerGroupID redirection,
String service,
String serviceParam)
If applicable, returns another messenger that will send messages to the same destination address than this one, but with the specified default service and serviceParam, possibly rewriting addresses to ensure delivery through the specified redirection. |
Messenger |
ThreadedMessenger.getChannelMessenger(PeerGroupID redirection,
String service,
String serviceParam)
|
Messenger |
MessengerEvent.getMessenger()
|
Messenger |
EndpointService.getMessenger(EndpointAddress addr)
Deprecated. This convenience method adds little value. It is strictly equivalent to
|
Messenger |
EndpointService.getMessenger(EndpointAddress addr,
Object hint)
Behaves like EndpointService.getMessengerImmediate(EndpointAddress, Object) , except that the invoker is blocked until the
messenger resolves or fails to do so. |
Messenger |
MessageSender.getMessenger(EndpointAddress dest,
Object hint)
Creates an Messenger for sending messages to the
specified destination EndpointAddress . |
Messenger |
EndpointService.getMessengerImmediate(EndpointAddress addr,
Object hint)
Returns a messenger to the specified destination. |
Methods in net.jxta.endpoint with parameters of type Messenger | |
---|---|
boolean |
ListenerAdaptor.watchMessenger(MessengerEventListener listener,
Messenger m)
Select the given messenger and invoke the given listener when the messenger is resolved. |
Constructors in net.jxta.endpoint with parameters of type Messenger | |
---|---|
MessengerEvent(Object source,
Messenger messenger,
EndpointAddress connectionAddress)
Creates a new instance of MessengerEvent |
Uses of Messenger in net.jxta.socket |
---|
Fields in net.jxta.socket declared as Messenger | |
---|---|
protected Messenger |
JxtaSocket.msgr
|
Methods in net.jxta.socket that return Messenger | |
---|---|
protected static Messenger |
JxtaSocket.lightweightOutputPipe(PeerGroup group,
PipeAdvertisement pipeAdv,
PeerAdvertisement peer)
A lightweight output pipe constructor, note the return type Since all the info needed is available, there's no need for to use the pipe service to resolve the pipe we have all we need to construct a messenger. |
Methods in net.jxta.socket with parameters of type Messenger | |
---|---|
protected void |
JxtaServerSocket.sendResponseMessage(PeerGroup group,
Messenger msgr,
PipeAdvertisement pipeAd)
Method sendResponseMessage get the createResponseMessage and sends it. |
Constructors in net.jxta.socket with parameters of type Messenger | |
---|---|
JxtaSocket(PeerGroup group,
Messenger msgr,
PipeAdvertisement pipe,
StructuredDocument credDoc,
boolean isStream)
Constructor for the JxtaSocket, this constructor does not establish a connection use this constructor when altering the default parameters, and options of the socket by default connections are unreliable, and the default timeout is 60 seconds to alter a connection a call to create(true) changes the connection to a reliable one. |
Uses of Messenger in net.jxta.util |
---|
Fields in net.jxta.util declared as Messenger | |
---|---|
protected Messenger |
JxtaBiDiPipe.msgr
|
Methods in net.jxta.util that return Messenger | |
---|---|
Messenger |
JxtaBiDiPipe.getMessenger()
Deprecated. use sendMessage instead |
protected static Messenger |
JxtaBiDiPipe.lightweightOutputPipe(PeerGroup group,
PipeAdvertisement pipeAdv,
PeerAdvertisement peer)
A lightweight output pipe constructor, note the return type Since all the info needed is available, there's no need for to use the pipe service to resolve the pipe we have all we need to construct a messenger. |
Methods in net.jxta.util with parameters of type Messenger | |
---|---|
protected void |
JxtaServerPipe.sendResponseMessage(PeerGroup group,
Messenger msgr,
PipeAdvertisement pipeAd)
Method sendResponseMessage get the createResponseMessage and sends it. |
Constructors in net.jxta.util with parameters of type Messenger | |
---|---|
JxtaBiDiPipe(PeerGroup group,
Messenger msgr,
PipeAdvertisement pipe,
StructuredDocument credDoc,
boolean isReliable)
JxtaBiDiPipe A bidirectional pipe |
Uses of Messenger in net.jxta.util.endpoint |
---|
Methods in net.jxta.util.endpoint that return Messenger | |
---|---|
Messenger |
WeakMessengerCache.getMessenger(EndpointAddress addr)
Deprecated. Return, if any, a cached Messenger. |
Messenger |
WeakMessengerCache.putMessenger(Messenger messenger)
Deprecated. Cache an Messenger. |
Methods in net.jxta.util.endpoint with parameters of type Messenger | |
---|---|
Messenger |
WeakMessengerCache.putMessenger(Messenger messenger)
Deprecated. Cache an Messenger. |
|
JXTA J2SE | |||||||||
PREV NEXT | FRAMES NO FRAMES |