Package org.eclipse.ecf.core.sharedobject.util

Examples of org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue


    }
  }

  protected void fireEvent(ISharedObjectEvent event) throws QueueException {
    for (Enumeration e = receiverQueues.elements(); e.hasMoreElements();) {
      IQueueEnqueue queue = (IQueueEnqueue) e.nextElement();
      queue.enqueue(event);
    }
  }
View Full Code Here


    }
  }

  protected void fireEvents(ISharedObjectEvent[] event) throws QueueException {
    for (Enumeration e = receiverQueues.elements(); e.hasMoreElements();) {
      IQueueEnqueue queue = (IQueueEnqueue) e.nextElement();
      if (queue != null) {
        queue.enqueue(event);
      }
    }
  }
View Full Code Here

    if (msg == null)
      throw new NullPointerException("SharedObjectMsg cannot be null"); //$NON-NLS-1$
    ISharedObjectContext context = getContext();
    if (context == null)
      return;
    IQueueEnqueue queue = context.getQueue();
    try {
      queue.enqueue(new SharedObjectMsgEvent(getID(), getContext().getLocalContainerID(), msg));
    } catch (QueueException e) {
      traceCatching("sendSharedObjectMsgToSelf", e); //$NON-NLS-1$
      log(DESTROYREMOTE_CODE, "sendSharedObjectMsgToSelf", e); //$NON-NLS-1$
    }
  }
View Full Code Here

      log("Exception in replicate", e); //$NON-NLS-1$
    }
  }

  protected void sendSelf(SharedObjectMsg msg) {
    IQueueEnqueue queue = getContext().getQueue();
    try {
      queue.enqueue(new RemoteSharedObjectMsgEvent(getID(), getContext()
          .getLocalContainerID(), msg));
    } catch (QueueException e) {
      log("QueueException enqueing message to self", e); //$NON-NLS-1$
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.sharedobject.util.IQueueEnqueue

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.