Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4012954
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:18:41+00:00 2026-05-20T09:18:41+00:00

I am considering moving my Java NIO implementation over to JBoss Netty as it

  • 0

I am considering moving my Java NIO implementation over to JBoss Netty as it provides a much cleaner model than I have implemented. The implementation manages a number of client connections to components over TCP using a proprietary protocol.

One aspect of my implementation, that I cannot see in Netty, is the ability to set arbitrary timeouts, which:

  1. Wait for some data to be read from the Component. I know that Netty has a ReadTimeoutHandler but can the timeout value be changed/turned off easily by the Component as it moves through the state machine?
  2. Wait for time to elapse so that I can reconnect to the Component (to give the Component time to be restarted after a disconnect). This is entirely unrelated to communication and is a simple timeout, however I’d like the timeout ‘event/exception’ to be presented to the handler class in the same manner as other communication-related timeouts.

Can this timeout mechanism be accomplished using Netty?

Conclusion: Given I would need to implement a timeout mechanism, which would run within the its own thread, I am not going to convert to using Netty after all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:18:41+00:00Added an answer on May 20, 2026 at 9:18 am

    See ChannelConfig. The method setConnectTimeoutMillis(int) sets the timeout in milliseconds. You can invoke this method via a Bootstrap instance by calling setOption(String, Object). The name would be “connectTimeoutMillis” and the value would be the desired timeout in milliseconds.

    The following snippet shows how to set the connect timeout to 5000 milliseconds (5 seconds).

    ClientBootstrap bootstrap... // bootstrap instance
    bootstrap.setOption("connectTimeoutMillis", 5000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering moving a number of small client sites to an unmanaged VPS hosting
As a LAMP developer considering moving to a .Net IIS platform, one of my
We are considering moving the win32 build of our cross-platform C++ application from MS
Considering you have an MVVM Architecture in WPF like Josh Smith's examples How would
Considering such code: class ToBeTested { public: void doForEach() { for (vector<Contained>::iterator it =
Considering private is the default access modifier for class Members, why is the keyword
Considering this code, can I be absolutely sure that the finally block always executes,
Considering the following architecture: a base object 'Entity' a derived object 'Entry:Base' and a
Considering the criteria listed below, which of Python, Groovy or Ruby would you use?
Considering a large system with hundreds of assemblies, what is the easiest way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.