|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.j_spaces.core.client.MulticastNotifyDelegator
public class MulticastNotifyDelegator
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.
INotifyDelegatorFilter
Method Summary | |
---|---|
void |
close()
close Multicast channels and unregister all templates. |
static MulticastNotifyDelegator |
getInstance(IJSpace space)
Returns single instance of MulticastNotifyDelegator per space. |
EventRegistration |
notify(Entry template,
Transaction txn,
RemoteEventListener listener,
long lease,
MarshalledObject handback,
boolean fifoEnabled,
int notifyMask)
register notify template with desired filter. |
EventRegistration |
notify(Entry template,
Transaction txn,
RemoteEventListener listener,
long lease,
MarshalledObject handback,
boolean fifoEnabled,
int notifyMask,
INotifyDelegatorFilter filter)
register notify template with desired filter. |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MulticastNotifyDelegator getInstance(IJSpace space) throws RemoteException
space
- The space proxy.
RemoteException
- Failed to initialize MulticastNotifyDelegator,
or if the passed space proxy is null
.public void run()
run
in interface Runnable
public EventRegistration notify(Entry template, Transaction txn, RemoteEventListener listener, long lease, MarshalledObject handback, boolean fifoEnabled, int notifyMask) throws TransactionException, RemoteException
TransactionException
RemoteException
public EventRegistration notify(Entry template, Transaction txn, RemoteEventListener listener, long lease, MarshalledObject handback, boolean fifoEnabled, int notifyMask, INotifyDelegatorFilter filter) throws TransactionException, RemoteException
TransactionException
RemoteException
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |