Go to file
Trustin Lee 23d0178494 Introduce EventExecutor.shutdownGracefully() that deprecates shutdown()
shutdownGracefully() provides two optional parameters that give more
control over when an executor has to be shut down.

- Related issue: #1307
- Add shutdownGracefully(..) and isShuttingDown()
- Deprecate shutdown() / shutdownNow()
- Replace lastAccessTime with lastExecutionTime and update it after task
  execution for accurate quiet period check
  - runAllTasks() and runShutdownTasks() update it automatically.
  - Add updateLastExecutionTime() so that subclasses can update it
- Add a constructor parameter that tells not to add an unncessary wakeup
  task in execute() if addTask() wakes up the executor thread
  automatically.  Previously, execute() always called wakeup() after
  addTask(), which often caused an extra dummy task in the task queue.
- Use shutdownGracefully() wherever possible / Deprecation javadoc
- Reduce the running time of SingleThreadEventLoopTest from 40s to 15s
  using custom graceful shutdown parameters

- Other changes made along with this commit:
  - takeTask() does not throw InterruptedException anymore.
    - Returns null on interruption or wakeup
  - Make sure runShutdownTasks() return true even if an exception was
    raised while running the shutdown tasks
  - Remove unnecessary isShutdown() checks
  - Consistent use of SingleThreadEventExecutor.nanoTime()

Replace isWakeupOverridden with a constructor parameter
2013-05-01 10:52:38 +09:00
all Fix version numbering 2013-03-25 08:01:11 +01:00
buffer Allow to disable only heap or direct buffer pool 2013-04-27 08:55:16 +09:00
codec [#1309] Make sure ReplayDecoder respect isSingleDecode() 2013-04-25 08:32:07 +02:00
codec-http Fix checkstyle 2013-04-30 21:11:41 +02:00
codec-socks fix #1234 - duplicate package-info.java errors in eclipse requires release of netty-build v 19 and netty-parent update. 2013-04-05 05:38:05 +09:00
common Introduce EventExecutor.shutdownGracefully() that deprecates shutdown() 2013-05-01 10:52:38 +09:00
example Introduce EventExecutor.shutdownGracefully() that deprecates shutdown() 2013-05-01 10:52:38 +09:00
handler Remove freeInboundBuffer() and freeOutboundBuffer() which has no value 2013-04-25 09:15:55 +09:00
license Add back jzlib license file and notice 2013-02-21 14:00:59 -08:00
microbench enable checkstyle for test source directory and fix checkstyle errors 2013-03-30 13:18:57 +01:00
tarball Fix version numbering 2013-03-25 08:01:11 +01:00
testsuite Introduce EventExecutor.shutdownGracefully() that deprecates shutdown() 2013-05-01 10:52:38 +09:00
testsuite-osgi Fix test failure in testsuite-osgi-deps 2013-04-25 21:56:34 +09:00
transport Introduce EventExecutor.shutdownGracefully() that deprecates shutdown() 2013-05-01 10:52:38 +09:00
transport-rxtx Fix version numbering 2013-03-25 08:01:11 +01:00
transport-sctp Return correct type on retain(..) 2013-04-21 13:41:34 +02:00
transport-udt Introduce EventExecutor.shutdownGracefully() that deprecates shutdown() 2013-05-01 10:52:38 +09:00
.fbfilter.xml Update license headers 2012-06-04 13:31:44 -07:00
.fbprefs Updated Find Bugs configuration 2009-03-04 10:33:09 +00:00
.gitignore ignore .idea/ folder 2012-01-16 16:01:00 +08:00
.travis.yml Travis CI branch whitelisting 2013-03-11 09:55:43 +09:00
LICENSE.txt Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
NOTICE.txt Add back jzlib license file and notice 2013-02-21 14:00:59 -08:00
pom.xml update to barchart-udt 2.2.6 2013-04-28 10:52:34 +02:00
README.md Fix broken url 2013-02-26 16:29:24 -08:00

Netty Project

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients.

How to build

For the detailed information about building and developing Netty, please visit the developer guide. This page only gives very basic information.

You require the following to build Netty:

Note that this is build-time requirement. JDK 5 (for 3.x) or 6 (for 4.0) is enough to run your Netty-based application.

Branches