io.netty.handler.timeout.TimeoutException Java Examples
The following examples show how to use
io.netty.handler.timeout.TimeoutException.
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: MixinClientConnection.java From multiconnect with MIT License | 5 votes |
@Inject(method = "exceptionCaught", at = @At("HEAD")) public void onExceptionCaught(ChannelHandlerContext context, Throwable t, CallbackInfo ci) { if (t instanceof DecoderException) { ConnectionInfo.resourceReloadLock.readLock().unlock(); } if (!(t instanceof PacketEncoderException) && !(t instanceof TimeoutException) && channel.isOpen()) { LogManager.getLogger("multiconnect").error("Unexpectedly disconnected from server!", t); } }
Example #2
Source File: Http2StreamExceptionHandler.java From aws-sdk-java-v2 with Apache License 2.0 | 4 votes |
private boolean isIoError(Throwable cause) { return cause instanceof TimeoutException || cause instanceof IOException; }
Example #3
Source File: UnusedChannelExceptionHandler.java From aws-sdk-java-v2 with Apache License 2.0 | 4 votes |
private boolean isNettyIoException(Throwable cause) { return cause instanceof IOException || cause instanceof TimeoutException; }
Example #4
Source File: IdleTimeoutHandler.java From bazel with Apache License 2.0 | 4 votes |
@SuppressWarnings("GoodTime-ApiWithNumericTimeUnit") public IdleTimeoutHandler(long timeoutSeconds, TimeoutException timeoutException) { super(/* readerIdleTime= */ 0, /* writerIdleTime= */ 0, timeoutSeconds, TimeUnit.SECONDS); this.timeoutException = timeoutException; }