lundi 17 décembre 2018

Design pattern used in ExecutorCompletionService core java class

The ExecutorCompletionService is wrapper around the Executor class. I can think of many design patterns by looking at the ExecutorCompletionService class source code

public class ExecutorCompletionService<V> implements CompletionService<V>
{
    public ExecutorCompletionService(Executor executor) {
    }
}

  • Proxy Design pattern
  • Adapter Design pattern
  • Decorator Design pattern
  • Bridge Design pattern

Can anyone explain in details which design pattern we can categorize this class implementation? Thanks in Advance.

Aucun commentaire:

Enregistrer un commentaire