类org.omg.PortableInterceptor.DISCARDING源码实例Demo

下面列出了怎么用org.omg.PortableInterceptor.DISCARDING的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: jdk1.8-source-analysis   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码2 项目: jdk1.8-source-analysis   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码3 项目: TencentKona-8   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码4 项目: TencentKona-8   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码5 项目: jdk8u60   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码6 项目: jdk8u60   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码7 项目: JDKSourceCode1.8   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码8 项目: JDKSourceCode1.8   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码9 项目: openjdk-jdk8u   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码10 项目: openjdk-jdk8u   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码11 项目: openjdk-jdk8u-backup   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码12 项目: openjdk-jdk8u-backup   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码13 项目: openjdk-jdk9   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码14 项目: openjdk-jdk9   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码15 项目: hottub   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码16 项目: hottub   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码17 项目: openjdk-8-source   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码18 项目: openjdk-8-source   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}
 
源代码19 项目: openjdk-8   文件: POAManagerImpl.java
public short getORTState()
{
    switch (state.value()) {
        case State._HOLDING    : return HOLDING.value ;
        case State._ACTIVE     : return ACTIVE.value ;
        case State._INACTIVE   : return INACTIVE.value ;
        case State._DISCARDING : return DISCARDING.value ;
        default                : return NON_EXISTENT.value ;
    }
}
 
源代码20 项目: openjdk-8   文件: POAManagerImpl.java
/**
 * <code>discard_requests</code>
 * <b>Spec: pages 3-14 thru 3-18</b>
 */
public synchronized void discard_requests(boolean wait_for_completion)
    throws org.omg.PortableServer.POAManagerPackage.AdapterInactive
{
    explicitStateChange = true ;

    if (debug) {
        ORBUtility.dprint( this,
            "Calling hold_requests on POAManager " + this ) ;
    }

    try {
        if ( state.value() == State._INACTIVE )
            throw new org.omg.PortableServer.POAManagerPackage.AdapterInactive();

        // set the state to DISCARDING
        state = State.DISCARDING;

        pihandler.adapterManagerStateChanged( myId, getORTState() ) ;

        // Notify any invocations that were waiting because the previous
        // state was HOLDING. Those invocations will henceforth be rejected with
        // a TRANSIENT exception. Also notify any threads that were waiting
        // inside hold_requests().
        notifyWaiters();

        if ( wait_for_completion ) {
            while ( state.value() == State._DISCARDING && nInvocations > 0 ) {
                countedWait() ;
            }
        }
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting hold_requests on POAManager " + this ) ;
        }
    }
}