Examples of Mailbox


Examples of org.voltcore.messaging.Mailbox

        buddyHSId = 0;
        long[] non_local = configureHSIds(hsids);

        MpTestPlan plan = createTestPlan(batch_size, true, false, false, non_local);

        Mailbox mailbox = mock(Mailbox.class);
        SiteProcedureConnection siteConnection = mock(SiteProcedureConnection.class);

        MpTransactionState dut =
            new MpTransactionState(mailbox, taskmsg, allHsids, partMasters, buddyHSId, false);
View Full Code Here

Examples of ptolemy.actor.Mailbox

    /** Return a receiver that is a one-place buffer. A token put into the
     *  receiver will overwrite any token already in the receiver.
     *  @return A receiver that is a one-place buffer.
     */
    public Receiver newReceiver() {
        return new Mailbox() {
            public boolean hasRoom() {
                return true;
            }

            public void put(Token token) {
View Full Code Here

Examples of rinde.sim.core.model.communication.Mailbox

  public RandomWalkAgent(double speed, int radius, double reliability) {
    this.speed = speed;
    this.radius = radius;
    communicatedWith = new HashSet<RandomWalkAgent>();
    lastCommunicationTime = new HashMap<RandomWalkAgent, Long>();
    mailbox = new Mailbox();
    lock = new ReentrantLock();
    communications = 0;
    this.reliability = reliability;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.