Category: Relevant topics

Design Patterns • JavaSE • Relevant topics

Business Delegate Pattern

by:

Business Delegate Pattern is used to decouple presentation tier and business tier. It is basically used to reduce communication or remote lookup functionality to business tier …

Frameworks • Relevant topics • Spring

Task Scheduling in Spring

by:

In many applications, various tasks (such as sending e-mail notifications to customers, running day-end jobs, doing data housekeeping and updating data in batches) need to be …

Common • JavaSE • Relevant topics

Jakarta XML Web Services (JAX-WS)

by:

Jakarta XML Web Services (formely Java API for XML Web Services) is a Jakarta EE API for creating web services, particularly SOAP services, JAX-WS is one …

Concurrency • JavaSE • Relevant topics

Managing Concurrent Processes

by:

The Concurrency API includes classes that can be used to coordinate tasks among a group of related threads. These classes are designated for use in some …

Concurrency • JavaSE • Relevant topics

SkipList and CopyOnWrite Collections

by:

SkipList classes, ConcurrentSkipListSet and ConcurrentSkipListMap, are concurrent versions of their sorted counterparts, TreeSet and TreeMap, respectively. They maintain their elements or keys in the natural ordering …

Concurrency • JavaSE • Relevant topics

Blocking Queues

by:

BlockingQueue is just like a regular Queue, except that it includes methods that will wait a specific amount of time to complete an operation. BlockingQueue inherits …

Concurrency • JavaSE • Relevant topics

Concurrent Collections

by:

Besides managing threads, Concurrency API includes interfaces and classes that help to coordinate access to collections across multiple tasks. Using concurrent collections is extremely convenient in …

Concurrency • JavaSE • Relevant topics

Protecting Data with Atomic Classes

by:

With the release of Concurrency API Java added a new java.util.concurrent.atomic package to help coordinate access to primitive values and object references. As with most classes …

Concurrency • JavaSE • Relevant topics

Increasing Concurrency with Pools

by:

Executors class has factory methods that act on a pool of threads, rather than on a single thread. A thread pool is a group of pre-instantiated …

Concurrency • JavaSE • Relevant topics

Scheduling tasks using Concurrency API

by:

Oftentimes in Java, there is a need to schedule a task to happen at some future time. Sometimes tasks must be scheduled to happen repeatedly, at …