Java Code Examples for com.sun.corba.se.spi.protocol.RetryType#equals()
The following examples show how to use
com.sun.corba.se.spi.protocol.RetryType#equals() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PIHandlerImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 2
Source File: PIHandlerImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 3
Source File: PIHandlerImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 4
Source File: PIHandlerImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 5
Source File: PIHandlerImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 6
Source File: PIHandlerImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 7
Source File: PIHandlerImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 8
Source File: PIHandlerImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 9
Source File: PIHandlerImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }
Example 10
Source File: PIHandlerImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void cleanupClientPIRequest() { if( !hasClientInterceptors ) return; if( !isClientPIEnabledForThisThread() ) return; ClientRequestInfoImpl info = peekClientRequestInfoImplStack(); RetryType rt = info.getRetryRequest() ; // fix for 6763340 if (!rt.equals( RetryType.BEFORE_RESPONSE )) { // If the replyStatus has not yet been set, this is an indication // that the ORB threw an exception before we had a chance to // invoke the client interceptor ending points. // // _REVISIT_ We cannot handle any exceptions or ForwardRequests // flagged by the ending points here because there is no way // to gracefully handle this in any of the calling code. // This is a rare corner case, so we will ignore this for now. short replyStatus = info.getReplyStatus(); if (replyStatus == info.UNINITIALIZED ) { invokeClientPIEndingPoint( ReplyMessage.SYSTEM_EXCEPTION, wrapper.unknownRequestInvoke( CompletionStatus.COMPLETED_MAYBE ) ) ; } } // Decrement entry count, and if it is zero, pop it from the stack. info.decrementEntryCount(); // fix for 6763340, and probably other cases (non-recursive retry) if (info.getEntryCount() == 0 && !info.getRetryRequest().isRetry()) { // RequestInfoStack<ClientRequestInfoImpl> infoStack = // threadLocalClientRequestInfoStack.get(); RequestInfoStack infoStack = (RequestInfoStack)threadLocalClientRequestInfoStack.get(); infoStack.pop(); printPop(); } }