com.j_spaces.core.client
Class MulticastNotifyDelegator

java.lang.Object
  extended by com.j_spaces.core.client.MulticastNotifyDelegator
All Implemented Interfaces:
Runnable

Deprecated. Use EventSessionFactory instead.

@Deprecated
public class MulticastNotifyDelegator
extends Object
implements Runnable

Presently, JavaSpace.notify() implemented using unicast approach. This approach has significant drawbacks when number of notify templates is huge or number of fired events is huge. Also, JavaSpaces has ability to identify equal templates. MulticastNotifyDelegator is intended to solve both of those problems in direct and indirect ways.

See Also:
INotifyDelegatorFilter

Method Summary
 void close()
          Deprecated. close Multicast channels and unregister all templates.
static MulticastNotifyDelegator getInstance(IJSpace space)
          Deprecated. Returns single instance of MulticastNotifyDelegator per space.
 EventRegistration notify(Entry template, Transaction txn, long lease, com.gigaspaces.events.NotifyInfo info)
          Deprecated. register notify template with desired filter.
 EventRegistration notify(Entry template, Transaction txn, RemoteEventListener listener, long lease, MarshalledObject handback, boolean fifoEnabled, int notifyMask)
          Deprecated. register notify template with desired filter.
 EventRegistration notify(Entry template, Transaction txn, RemoteEventListener listener, long lease, MarshalledObject handback, boolean fifoEnabled, int notifyMask, INotifyDelegatorFilter filter)
          Deprecated.  
 void run()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MulticastNotifyDelegator getInstance(IJSpace space)
                                            throws RemoteException
Deprecated. 
Returns single instance of MulticastNotifyDelegator per space.

Parameters:
space - The space proxy.
Returns:
Returns instance of MulticastNotifyDelegator.
Throws:
RemoteException - Failed to initialize MulticastNotifyDelegator, or if the passed space proxy is null.

run

public void run()
Deprecated. 
Specified by:
run in interface Runnable

notify

public EventRegistration notify(Entry template,
                                Transaction txn,
                                RemoteEventListener listener,
                                long lease,
                                MarshalledObject handback,
                                boolean fifoEnabled,
                                int notifyMask)
                         throws TransactionException,
                                RemoteException
Deprecated. 
register notify template with desired filter.

Throws:
TransactionException
RemoteException

notify

public EventRegistration notify(Entry template,
                                Transaction txn,
                                RemoteEventListener listener,
                                long lease,
                                MarshalledObject handback,
                                boolean fifoEnabled,
                                int notifyMask,
                                INotifyDelegatorFilter filter)
                         throws TransactionException,
                                RemoteException
Deprecated. 
Throws:
TransactionException
RemoteException

notify

public EventRegistration notify(Entry template,
                                Transaction txn,
                                long lease,
                                com.gigaspaces.events.NotifyInfo info)
                         throws TransactionException,
                                RemoteException
Deprecated. 
register notify template with desired filter.

Throws:
TransactionException
RemoteException

close

public void close()
Deprecated. 
close Multicast channels and unregister all templates.