public class ServerEventListenerProxy extends Object implements EventListener
ServerEventListenerProxyclass is the server-side event listener proxy registered on behalf of a client-side event listener identified with the unique identifier.
The term Server in this class indicates, that this is a server-side
class. In contrast to the classes in the
org.apache.jackrabbit.rmi.server package, this class neither extends
ServerObject class nor does it
implement any of the remote interfaces in the
org.apache.jackrabbit.rmi.remote package because it only is
instantiated to be used on the server side.
See the package overview for an explanation of the mechanisms implemented for event dispatching.
|Constructor and Description|
Creates a new instance of this listener proxy.
|Modifier and Type||Method and Description|
Returns the client-side listener identifier as its hash code.
Returns the a string representation of this instance, which is an indication of this class's name and the unique identifier of the real event listener.
public ServerEventListenerProxy(RemoteAdapterFactory factory, long listenerId, Queue queue)
RemoteAdapterFactoryused to convert the
listenerId- The unique identifier of the client-side event listener on whose behalf this proxy works.
queue- The sink to which events to be dispatched to the client are queued to be picked up.
public void onEvent(EventIterator events)
Eventinstances in the given iterator to an instance of
RemoteEventCollectionfor them to be dispatched to the client-side event listener.
public int hashCode()
public boolean equals(Object obj)
objis either the same as this or a proxy for the same client-side listener, which is identicated by the same listener identifier.
Copyright © 2004-2018 The Apache Software Foundation. All Rights Reserved.