Skip to main content

· One min read

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

· One min read

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

· 2 min read

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 withStackTrace 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.