GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - morgwai/java-utils: Some utility classes

BranchesTags
Open more actions menu

Latest commit

 

History

342 Commits
342 Commits

Folders and files

NameName
Last commit message
Last commit date
.mvn/wrapper
.mvn/wrapper
 
 
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CHANGES.md
CHANGES.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.header
build.gradle.header
 
 
generate-build.gradle.sh
generate-build.gradle.sh
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Java utils

Some utility classes.
Copyright 2021 Piotr Morgwai Kotarbinski, Licensed under the Apache License, Version 2.0.

latest release: 5.2 (javadoc)

See CHANGES for the summary of changes between releases. If the major version of a subsequent release remains unchanged, it is supposed to be backwards compatible in terms of API and behaviour with previous ones with the same major version (meaning that it should be safe to just blindly update in dependent projects and things should not break under normal circumstances).

Note: from version 2.0, java.util.logging utilities have been moved to a separate repo.

MAIN USER CLASSES

OrderedConcurrentOutputBuffer

Buffers messages until all of those that should be written before to the underlying output stream are available, so that they all can be written in the desired order. Useful for processing input streams in several concurrent Threads when the order of the resulting outbound messages must reflect the order of inbound messages. See a usage example here.

CallableTaskExecution

Adapter for a Callable that allows to pass it to Executor.execute(Runnable) and access its results using CompletableFuture API.

TaskTrackingExecutor

ExecutorService that allows to obtain a List of currently running tasks. Useful for monitoring or debugging which tasks got stuck and prevented clean termination. 2 implementations are provided: TaskTrackingThreadPoolExecutor extending ThreadPoolExecutor and ScheduledTaskTrackingThreadPoolExecutor extending ScheduledThreadPoolExecutor.

Awaitable

Utilities to await for multiple timed blocking operations, such as Thread.join(timeout), ExecutorService.awaitTermination(...) etc. See a usage example here.

NamingThreadFactory

ThreadFactory that names new Threads based on a constructor supplied generator/name.

NoCopyByteArrayOutputStream

ByteArrayOutputStream that allows to directly access its underlying buffer (without copying) after the stream was closed.

About

Some utility classes

Topics

concurrentjavajava-utiljava-util-concurrent

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.