Package org.omg.Messaging

Examples of org.omg.Messaging.RelativeRoundtripTimeoutPolicy


    @Test
    public void testRelativeRoundtripTimeoutPolicy()
    {
        Any value = create_any();
        value.insert_ulonglong(123456789);
        RelativeRoundtripTimeoutPolicy p = (RelativeRoundtripTimeoutPolicy)create_policy
        (
            RELATIVE_RT_TIMEOUT_POLICY_TYPE.value,
            value
        );
        assertEquals (RELATIVE_RT_TIMEOUT_POLICY_TYPE.value, p.policy_type());
        assertEquals (123456789, p.relative_expiry());

        RelativeRoundtripTimeoutPolicy p2 = (RelativeRoundtripTimeoutPolicy)p.copy();
        assertEquals (p.relative_expiry(), p2.relative_expiry());
        p.destroy();
        p2.destroy();
    }
View Full Code Here

TOP

Related Classes of org.omg.Messaging.RelativeRoundtripTimeoutPolicy

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.