Class ServerEventListenerProxy
- java.lang.Object
-
- org.apache.jackrabbit.rmi.observation.ServerEventListenerProxy
-
- All Implemented Interfaces:
EventListener
@Deprecated(forRemoval=true) public class ServerEventListenerProxy extends Object implements EventListener
Deprecated, for removal: This API element is subject to removal in a future version.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.The
ServerEventListenerProxy
class 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 theServerObject
class nor does it implement any of the remote interfaces in theorg.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 Summary
Constructors Constructor Description ServerEventListenerProxy(RemoteAdapterFactory factory, long listenerId, Queue queue)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of this listener proxy.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrue
ifobj
is either the same as this or a proxy for the same client-side listener, which is identicated by the same listener identifier.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the client-side listener identifier as its hash code.void
onEvent(EventIterator events)
Deprecated, for removal: This API element is subject to removal in a future version.Converts theEvent
instances in the given iterator to an instance ofRemoteEventCollection
for them to be dispatched to the client-side event listener.String
toString()
Deprecated, for removal: This API element is subject to removal in a future version.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.
-
-
-
Constructor Detail
-
ServerEventListenerProxy
public ServerEventListenerProxy(RemoteAdapterFactory factory, long listenerId, Queue queue)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of this listener proxy.- Parameters:
factory
- TheRemoteAdapterFactory
used to convert theEventIterator
instances toRemoteEventCollection
objects.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.
-
-
Method Detail
-
onEvent
public void onEvent(EventIterator events)
Deprecated, for removal: This API element is subject to removal in a future version.Converts theEvent
instances in the given iterator to an instance ofRemoteEventCollection
for them to be dispatched to the client-side event listener.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
events
- TheEvents
to be dispatched.
-
hashCode
public int hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the client-side listener identifier as its hash code.
-
equals
public boolean equals(Object obj)
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrue
ifobj
is either the same as this or a proxy for the same client-side listener, which is identicated by the same listener identifier.
-
toString
public String toString()
Deprecated, for removal: This API element is subject to removal in a future version.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.
-
-