Examples of UnsignedByte


Examples of org.apache.qpid.amqp_1_0.type.UnsignedByte

        }
    }

    public int getJMSPriority() throws JMSException
    {
        UnsignedByte priority = getPriority();
        return priority == null ? DEFAULT_PRIORITY : priority.intValue();
    }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.UnsignedByte

        }
    }

    public int getJMSPriority() throws JMSException
    {
        UnsignedByte priority = getPriority();
        return priority == null ? DEFAULT_PRIORITY : priority.intValue();
    }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.UnsignedByte

      private static Header populateHeader(ServerMessage message, int deliveryCount)
      {
         Header header = new Header();
         header.setDurable(message.isDurable());
         header.setPriority(new UnsignedByte(message.getPriority()));
         header.setDeliveryCount(new UnsignedInteger(deliveryCount));
         header.setTtl(new UnsignedInteger((int) message.getExpiration()));
         return header;
      }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.UnsignedByte

      private static Header populateHeader(ServerMessage message, int deliveryCount)
      {
         Header header = new Header();
         header.setDurable(message.isDurable());
         header.setPriority(new UnsignedByte(message.getPriority()));
         header.setDeliveryCount(new UnsignedInteger(deliveryCount));
         header.setTtl(new UnsignedInteger((int) message.getExpiration()));
         return header;
      }
View Full Code Here

Examples of org.apache.qpid.proton.amqp.UnsignedByte

        } if( msg instanceof ObjectMessage ) {
            body = new AmqpValue(((ObjectMessage) msg).getObject());
        }

        header.setDurable(msg.getJMSDeliveryMode() == DeliveryMode.PERSISTENT ? true : false);
        header.setPriority(new UnsignedByte((byte) msg.getJMSPriority()));
        if( msg.getJMSExpiration() != 0 ) {
            header.setTtl(new UnsignedInteger((int) msg.getJMSExpiration()));
        }
        if( msg.getJMSType()!=null ) {
            if( maMap==null ) maMap = new HashMap();
View Full Code Here

Examples of org.apache.qpid.proton.type.UnsignedByte

                case 7:
                    o.setTarget( (Target) l.get( 6 ) );
                case 8:
                    o.setSource( (Source) l.get( 5 ) );
                case 9:
                    UnsignedByte rcvSettleMode = (UnsignedByte) l.get(4);
                    o.setRcvSettleMode(rcvSettleMode == null ? ReceiverSettleMode.FIRST : rcvSettleMode);
                case 10:
                    UnsignedByte sndSettleMode = (UnsignedByte) l.get(3);
                    o.setSndSettleMode(sndSettleMode == null ? SenderSettleMode.MIXED : sndSettleMode);
                case 11:
                    o.setRole( (Boolean) l.get( 2 ) );
                case 12:
                    o.setHandle( (UnsignedInteger) l.get( 1 ) );
View Full Code Here

Examples of org.opcfoundation.ua.builtintypes.UnsignedByte

    public static ViewNodeAttributes fromGenerated(GeneratedUAView generated) {
        NodeAttributes nodeAttributes = NodeAttributes.fromGenerated(generated, NodeClass.View);

        boolean containsNoLoops = generated.isContainsNoLoops();
        UnsignedByte eventNotifier = new UnsignedByte(generated.getEventNotifier());

        return new ViewNodeAttributes(nodeAttributes, containsNoLoops, eventNotifier);
    }
View Full Code Here

Examples of propel.core.userTypes.UnsignedByte

   * @throws NumberFormatException A number could not be parsed.
   */
  @Validate
  public static UnsignedByte fromBinaryToUInt8(@NotNull final String binary)
  {
    return new UnsignedByte(new BigInteger(binary, 2));
  }
View Full Code Here

Examples of propel.core.userTypes.UnsignedByte

   * @throws NumberFormatException A number could not be parsed.
   */
  @Validate
  public static UnsignedByte fromStringToUInt8(@NotNull final String value)
  {
    return new UnsignedByte(value);
  }
View Full Code Here

Examples of propel.core.userTypes.UnsignedByte

   * @throws NumberFormatException A number could not be parsed.
   */
  @Validate
  public static UnsignedByte fromHexToUInt8(@NotNull final String hex)
  {
    return new UnsignedByte(new BigInteger(hex, 16));
  }
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.