Name

EndpointListener

Synopsis

Objects that implement this interface can be registered with the endpoint service. When the endpoint receives a message for a particular address, the processIncomingMessage( ) method of the listener will be called.

Note that this interface is not a standard event listener: it does not extend the EventListener interface and does not receive an EventObject.

public interface EndpointListener {
// Public Instance Methods
   public abstract void processIncomingMessage(Message message, EndpointAddress srcAddr,                                                                          
                        EndpointAddress dstAddr);
}

Passed To

EndpointService.{addListener(), removeListener()}, net.jxta.rendezvous.RendezVousService.{addPropagateListener(), removePropagateListener()}

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.