Top Description Inners Fields Constructors Methods
com.oracle.bmc.http.client.internal

public Class ClientThreadFactory

extends Object
implements ThreadFactory
Class Inheritance
All Implemented Interfaces
java.util.concurrent.ThreadFactory
Imports
java.util.Objects, java.util.concurrent.Executors, .ThreadFactory, java.util.concurrent.atomic.AtomicLong

A thread factory for use in clients.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final Boolean
private final String

Constructor Summary

AccessConstructor and Description
private
ClientThreadFactory(String nameFormat, Boolean isDaemon)

Method Summary

Modifier and TypeMethod and Description
public static ClientThreadFactory.Builder
public Thread
newThread(Runnable
a runnable to be executed by new thread instance
runnable
)

Implements java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private final AtomicLong count
isDaemonback to summary
private final Boolean isDaemon
nameFormatback to summary
private final String nameFormat

Constructor Detail

ClientThreadFactoryback to summary
private ClientThreadFactory(String nameFormat, Boolean isDaemon)

Method Detail

builderback to summary
public static ClientThreadFactory.Builder builder()
newThreadback to summary
public Thread newThread(Runnable runnable)

Implements java.util.concurrent.ThreadFactory.newThread.

Doc from java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Parameters
runnable:Runnable

a runnable to be executed by new thread instance

Returns:Thread

constructed thread, or null if the request to create a thread is rejected

Annotations
@Override
com.oracle.bmc.http.client.internal back to summary

public Class ClientThreadFactory.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • com.oracle.bmc.http.client.internal.ClientThreadFactory.Builder

Field Summary

Modifier and TypeField and Description
private Boolean
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClientThreadFactory
public ClientThreadFactory.Builder
isDaemon(boolean isDaemon)

public ClientThreadFactory.Builder
nameFormat(String nameFormat)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isDaemonback to summary
private Boolean isDaemon
nameFormatback to summary
private String nameFormat

Constructor Detail

Builderback to summary
public Builder()

Method Detail

buildback to summary
public ClientThreadFactory build()
isDaemonback to summary
public ClientThreadFactory.Builder isDaemon(boolean isDaemon)
nameFormatback to summary
public ClientThreadFactory.Builder nameFormat(String nameFormat)