Package org.omg.Messaging

Examples of org.omg.Messaging.RelativeRequestTimeoutPolicy


    @Test
    public void testRelativeRequestTimeoutPolicy()
    {
        Any value = create_any();
        value.insert_ulonglong(123456789);
        RelativeRequestTimeoutPolicy p = (RelativeRequestTimeoutPolicy)create_policy
        (
            RELATIVE_REQ_TIMEOUT_POLICY_TYPE.value,
            value
        );
        assertEquals (RELATIVE_REQ_TIMEOUT_POLICY_TYPE.value, p.policy_type());
        assertEquals (123456789, p.relative_expiry());

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

TOP

Related Classes of org.omg.Messaging.RelativeRequestTimeoutPolicy

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.