Skip to main content

Active J 4.3 - Small improvements for multiple modules

ActiveJ v4.3 was released May 28, 2021 (see on Maven). This release introduced small improvements for multiple modules.

  • Added new method onConnecting to AsyncHttpClient 's Inspector. Now, the number of connection that are being established can be monitored via JmxInspector#getConnecting attribute
  • When HTTP connection closes, the proper exception is propagated to HTTP request and response body suppliers
  • ThrottlingController now throttles all the processing if tasks consecutively execute for abnormally long time
  • ForwardingStreamSupplier now correctly binds peer StreamSupplier to StreamConsumer
  • Fixed asynchronous recursion in ChannelSerializer
  • Missing measures in Aggregation are initialized with default 'zero' values
  • HyperLogLog now correctly adds int values

Active J 4.2 - Expanded functionality

ActiveJ v4.2 was released Apr 13, 2021 (see on Maven). This release expanded functionality of some components.

  • ActiveJ Redis client
  • RecordScheme
    • Added ability to specify fields in RecordScheme that would be used for equals() and hashCode() implementation
    • Added ability to specify fields that would be used to generate a record Comparator
  • FileLocker
    • Made FileLocker constructors public
    • FileLocker now implements java.io.Closeable interface
  • StateManager
    • Added tryLoadSnapshot() and tryLoadDiff() methods that return null rather than throwing an exception
    • Added tryLoad() method to FileStateManager that returns null rather than throwing an exception
    • Added save() method to FileStateManager that takes up a revision for the state to be saved with
  • Improved processing of HTTP requests with large URLs

Active J 4.1 - Optimization and simplification

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
  • Added 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 Locale
  • Stick to using en-US locale when formatting EventStats and ValueStats

Active J 4.0 - Refactoring of exceptions

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 ApplicationSettingwithStackTrace to true.
    • 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::scanBytes. Added ByteBufs::consumeBytes method that works like ByteBufs::scanBytes, but actually consumes scanned bytes/bufs.
  • Removed StreamMapper, now stream mapping can be achieved via StreamFilter.mapper(Function<I, O>)
  • 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 by calling Cube::getIrrelevantChunks. Irrelevant chunks can be cleaned up by calling CubeConsolidationController::cleanupIrrelevantChunks.
  • 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.