Class POBBackgroundThreadExecutor

  • All Implemented Interfaces:
    com.pubmatic.sdk.common.taskhandler.POBThreadExecutor , java.util.concurrent.Executor

    
    public final class POBBackgroundThreadExecutor
     implements POBThreadExecutor
                        

    An POBThreadExecutor that executes the given task on background thread. Internally it uses ThreadPoolExecutor with core pool size 2 and maximum pool size Int.MAX_VALUE. This will help to avoid creating too many background threads for long running task.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit execute(Runnable runnable) Execute the runnable on background thread
      Boolean cancel(Runnable runnable) Cancel the runnable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POBBackgroundThreadExecutor

        POBBackgroundThreadExecutor()