Package org.springmodules.javaspaces

Examples of org.springmodules.javaspaces.JavaSpaceCallback


   * @return NotifyDelegator the NotifyDelegator
   * @see {@link http://java.sun.com/products/jini/2.0/doc/api/net/jini/space/JavaSpace.html#addNotifyDelegatorListener(}
   */
  public NotifyDelegator addNotifyDelegatorListener(final RemoteEventListener listener,final Object template, final MarshalledObject nandback,final boolean  fifoEnabled,final long lease, final int notifyMask)
  {
    return (NotifyDelegator) execute(new JavaSpaceCallback() {
      public Object doInSpace(JavaSpace js, Transaction tx) throws RemoteException, TransactionException{
        return new NotifyDelegator((IJSpace)js, template , tx, listener, lease, nandback , fifoEnabled, notifyMask);
      }
    });
  }
View Full Code Here


   * @param notifyMask -Available Notify Types: NotifyModifiers.NOTIFY_WRITE NotifyModifiers.NOTIFY_UPDATE NotifyModifiers.NOTIFY_TAKE NotifyModifiers.NOTIFY_LEASE_EXPIRATION NotifyModifiers.NOTIFY_ALL NotifyDelegator nd = new NotifyDelegator(space, template, transaction, listener, Lease.FOREVER, handback, true, NotifyModifiers.NOTIFY_WRITE | NotifyModifiers.NOTIFY_TAKE
   * @return NotifyDelegator the NotifyDelegator
   * @see {@link http://java.sun.com/products/jini/2.0/doc/api/net/jini/space/JavaSpace.html#addNotifyDelegatorListener(}
   */
  public NotifyDelegator addNotifyDelegatorListener(final JavaSpaceListener javaSpaceListener, final boolean fifoEnabled,final int notifyMask){
    return (NotifyDelegator) execute(new JavaSpaceCallback() {
      public Object doInSpace(JavaSpace js, Transaction tx) throws RemoteException, TransactionException{
        return new NotifyDelegator((IJSpace)js, javaSpaceListener.getTemplate() , tx, javaSpaceListener.getListener(), javaSpaceListener.getLease(), javaSpaceListener.getHandback(), fifoEnabled, notifyMask);

      }
    });
View Full Code Here

   * @return EventRegistration - the event registration to the the registrant
   * @see {@link http://java.sun.com/products/jini/2.0/doc/api/net/jini/space/JavaSpace.html#notify(net.jini.core.entry.Entry,net.jini.core.transaction.Transaction,net.jini.core.event.RemoteEventListener,long,java.rmi.MarshalledObject()}
   */
  public EventRegistration notify(final Object templatePojo, final RemoteEventListener listener,
      final long millis, final MarshalledObject handback, final Transaction tx) {
    return (EventRegistration) execute(new JavaSpaceCallback() {
      public Object doInSpace(JavaSpace js, Transaction tx) throws RemoteException, TransactionException{
        return ((IJSpace)js).notify(templatePojo, tx, listener, millis, handback);
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.springmodules.javaspaces.JavaSpaceCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.