Skip to content

janithb/ConcurrentTimelyBufferedArrayList

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

ConcurrentTimelyBufferedArrayList

A new data structure compatible with java.util.List and can be used to stream data in asynchronously.

Example:

Java 8:

List<String> list = new ConcurrentTimelyBufferedArrayList<>(10,
            buffered -> System.out.println(buffered.toString())
            );
    
list.add("1");
list.add("2");
list.add("3");
....
....
list.close();

Other Java Versions:

List<String> list = new ConcurrentTimelyBufferedArrayList<>(10,
                new BufferedListener<String>() {
                    @Override
                    public void accept(List<String> buffered) {
                        System.out.println(buffered.toString());
                    }
                });
    
list.add("1");
list.add("2");
list.add("3");
....
....
list.close();

About

List data structure compatible with java.util.List and can be used to stream data in asynchronously.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages