Examples of pn_uuid_t


Examples of org.apache.qpid.proton.jni.pn_uuid_t

    @Override
    @ProtonCEquivalent("pn_data_put_uuid")
    public void putUUID(final UUID u)
    {
        final pn_uuid_t uuid = new pn_uuid_t();
        byte[] data = new byte[16];
        ByteBuffer buf = ByteBuffer.wrap(data);
        buf.putLong(u.getMostSignificantBits());
        buf.putLong(u.getLeastSignificantBits());
        uuid.setBytes(data);

        Proton.pn_data_put_uuid(_impl, uuid);

        //TODO
    }
View Full Code Here

Examples of org.apache.qpid.proton.jni.pn_uuid_t

    @Override
    @ProtonCEquivalent("pn_data_get_uuid")
    public UUID getUUID()
    {
        pn_uuid_t u = Proton.pn_data_get_uuid(_impl);
        ByteBuffer buf = ByteBuffer.wrap(u.getBytes());
        long msb = buf.getLong();
        long lsb = buf.getLong();

        final UUID uuid = new UUID(msb, lsb);
        return uuid;
View Full Code Here

Examples of org.apache.qpid.proton.jni.pn_uuid_t

    @Override
    @ProtonCEquivalent("pn_data_put_uuid")
    public void putUUID(final UUID u)
    {
        final pn_uuid_t uuid = new pn_uuid_t();
        byte[] data = new byte[16];
        ByteBuffer buf = ByteBuffer.wrap(data);
        buf.putLong(u.getMostSignificantBits());
        buf.putLong(u.getLeastSignificantBits());
        uuid.setBytes(data);

        Proton.pn_data_put_uuid(_impl, uuid);

        //TODO
    }
View Full Code Here

Examples of org.apache.qpid.proton.jni.pn_uuid_t

    @Override
    @ProtonCEquivalent("pn_data_get_uuid")
    public UUID getUUID()
    {
        pn_uuid_t u = Proton.pn_data_get_uuid(_impl);
        ByteBuffer buf = ByteBuffer.wrap(u.getBytes());
        long msb = buf.getLong();
        long lsb = buf.getLong();

        final UUID uuid = new UUID(msb, lsb);
        return uuid;
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.