Examples of dest()


Examples of org.groovymud.object.alive.Player.dest()

      // we need to dest this player if they say yes
      ConfirmationCallback alreadyPlaying = new ConfirmationCallback("You are already playing. Throw the other copy out?", ConfirmationCallback.INFORMATION, ConfirmationCallback.YES_NO_OPTION, ConfirmationCallback.NO);
      cb = createCallbackArray(alreadyPlaying);
      getCallbackHandler().handle(cb);
      if (alreadyPlaying.getSelectedIndex() == ConfirmationCallback.YES) {
        dupe.dest(true);
      } else {
        throw new FailedLoginException("cannot log in, already logged in!");
      }
    }
  }
View Full Code Here

Examples of org.jgroups.Message.dest()

        if(evt.getType() == Event.MSG) {
            Message msg=(Message)evt.getArg();
            if(msg.isFlagSet(Message.Flag.OOB) && msg.isFlagSet(Message.Flag.INTERNAL))
                return up_prot.up(evt);

            if((msg.dest() == null && multicasts) || (msg.dest() != null && unicasts)) {
                queue(msg);
                return null;
            }
        }
        return up_prot.up(evt);
View Full Code Here

Examples of org.jgroups.Message.dest()

        if(evt.getType() == Event.MSG) {
            Message msg=(Message)evt.getArg();
            if(msg.isFlagSet(Message.Flag.OOB) && msg.isFlagSet(Message.Flag.INTERNAL))
                return up_prot.up(evt);

            if((msg.dest() == null && multicasts) || (msg.dest() != null && unicasts)) {
                queue(msg);
                return null;
            }
        }
        return up_prot.up(evt);
View Full Code Here

Examples of org.jgroups.Message.dest()

    public void testDontLoopback() {
        final Address DEST=Util.createRandomAddress("A");
        Message msg=new Message(null).setTransientFlag(Message.TransientFlag.DONT_LOOPBACK);

        msg.dest(null); // OK
        msg.setDest(null);

        msg.dest(DEST);

        msg.clearTransientFlag(Message.TransientFlag.DONT_LOOPBACK);
View Full Code Here

Examples of org.jgroups.Message.dest()

        Message msg=new Message(null).setTransientFlag(Message.TransientFlag.DONT_LOOPBACK);

        msg.dest(null); // OK
        msg.setDest(null);

        msg.dest(DEST);

        msg.clearTransientFlag(Message.TransientFlag.DONT_LOOPBACK);
        msg.dest(DEST); // OK
        msg.setTransientFlag(Message.TransientFlag.DONT_LOOPBACK);
        msg.setTransientFlagIfAbsent(Message.TransientFlag.DONT_LOOPBACK);
View Full Code Here

Examples of org.jgroups.Message.dest()

        msg.setDest(null);

        msg.dest(DEST);

        msg.clearTransientFlag(Message.TransientFlag.DONT_LOOPBACK);
        msg.dest(DEST); // OK
        msg.setTransientFlag(Message.TransientFlag.DONT_LOOPBACK);
        msg.setTransientFlagIfAbsent(Message.TransientFlag.DONT_LOOPBACK);

        short flags=(short)(Message.TransientFlag.DONT_LOOPBACK.value() + Message.TransientFlag.OOB_DELIVERED.value());
        msg.setTransientFlag(flags);
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.