ActiveJ Release Notes
ActiveJ v4.1 was released Mar 19, 2021 (see on Maven). This release included optimization and simplification of HTTP code, expanding functionality of some components.
- HTTP refactoring and optimizations
- Optimized and simplified processing of incoming HTTP messages, headers and URLs
- Added preconditions for an HTTP message which guard against using recycled messages
- User-created HTTP messages (HttpRequest for AsyncHttpClient / HttpResponse in AsyncServlet) are not recycled anymore (only message body is recycled if present), thus making it possible to cache and reuse them
Promise<Void> fetch()method to OTStateManager. Fetched changes are stored without being applied to the current state.
- Improved casting of deserialized fields in ActiveJ Serializer
- Added default Initializers for common components
- Added preconditions when applying operations to LogOTState
- Removed JmxModule from common HTTP launchers
- Added new JMX stats to RpcClient for monitoring unresponsive RPC servers
- Added ApplicationSettings
method for obtaining a default
- Stick to using
en-USlocale when formatting EventStats and ValueStats
ActiveJ v4.0 was released Feb 16, 2021 (see on Maven). This release included major refactoring of exceptions. This release also introduces asynchronous high-performance ActiveJ Redis client. Other components were optimized for the performance.
- Exceptions refactoring
- All public constant exceptions were removed/hidden.
- StacklessException was removed. Classes that extended StacklessException now extend regular Exception,
some of them are still stackless. Stackless exceptions provide the ability to include stack trace for debugging purposes.
This can be achieved by setting exception’s ApplicationSetting
- Renamed exceptions:
- Added new exceptions for top-level components, etc.
- Introduced asynchronous lightweight high-performance ActiveJ Redis Client with extendable API. Examples and benchmarks for Redis client were added as well.
- Optimizations in network code, HTTP processing (especially in pipelining mode), and data serialization.
- Renamed ByteBufQueue -> ByteBufs.
Added byte index to ByteScanner, refactored
ByteBufs::consumeBytesmethod that works like
ByteBufs::scanBytes, but actually consumes scanned bytes/bufs.
- Removed StreamMapper, now stream mapping can be achieved via
- Removed Transducer, StreamTransducer, AbstractStreamReducer, StreamMerger classes. Merging of streams can be done via StreamReducer
- Renamed MergeSortReducer -> MergeReducer, MergeDistinctReducer -> DeduplicateReducer
- Added ability to obtain irrelevant chunks from Cube
Cube::getIrrelevantChunks. Irrelevant chunks can be cleaned up by calling
- Added JUnit test rule ClassBuilderConstantsRule which validates that all of the ClassBuilder’s static constants are cleared after test passes.
- Renamed most classes/methods that contained parse to contain decode instead.
ActiveJ v3.0 was released Nov 12, 2020 (see on Maven). This release included numerous changes and improvements:
- ActiveJ Codegen API for constructors and super-constructors became more streamlined. Records, RecordScheme classes were improved. Introduced RecordProjection class. Also, now you can set the bytecode save directory using system property (via ApplicationSettings). We’ve also added the ability to throw custom exceptions via Expressions.
- ActiveJ Serializer. StreamInput and StreamOutput classes were introduced as an alternative to Java’s DataInputStream and DataOutputStream. StreamCodecFactory was introduced alongside StreamCodecRegistry and StreamCodecs classes. SerializerBuilder was greatly improved. Also minor refactoring and improvements were performed.
- ActiveJ FS - file durability options were added to LocalActiveFs, LocalBlockingFs. We’ve added LocalBlockingFs and simplified LocalActiveFs. There also were minor bug fixes and refactoring performed.
- ActiveJ Datastream. We’ve reworked and simplified ChannelDeserializer and ChannelSerializer classes, replacing explicit maximum message size with adaptive message size of up to 256MB (as opposed to the 2MB limit in ActiveJ v2.0).
- ActiveJ HTTP - HTTP connections classes were made public and are now added to requests (on servers) and to responses (on clients). HTTP version was added to HTTP messages. HTTP inspectors were reworked.
- ActiveJ RPC, ActiveJ CSP, Net, and Cube got minor improvements and bug fixes. This release also introduces FileStateManager in the util-state package.
ActiveJ v2.2 was released Sep 11, 2020 (see on Maven). This release included major fixes and improvements of JMX module start up, which greatly sped up Launchers. Now all the HTTP examples launch lightning-fast! The release also included reworks of recycling of iterators, restoring compilation for JDK 8, and other minor bug fixes. We’ve also added a new ActiveJ FS example for deploying cluster file storage.
ActiveJ v2.1 was released Sep 4, 2020 (see on Maven). This release included minor bug fixes and introduced support of WebSockets communication protocol. You can explore a basic WebSocket Ping-Pong client-server use case here
ActiveJ v2.0 was released Aug 18, 2020 (see on Maven). The release included a list of important improvements and optimizations.
ActiveJ Fs library was affected the most. ActiveJ FS client HTTP and TCP implementations got a full support of append and upload operations. A support of concurrent uploads with last-write-wins semantics was added. There also were some important optimizations and minor bug fixes. For your convenience, we’ve added a Javadoc to each of the ActiveFs implementations.
ActiveJ Codegen got a full support of static fields and class initializers
ActiveJ Serializer got a support of cyclic references
Most of the other ActiveJ components were slightly affected and optimized by the aforementioned improvements.