Top Description Inners Fields Constructors Methods
jakarta.enterprise.event

pack-priv Class ImmutableNotificationOptions

extends Object
implements NotificationOptions
Class Inheritance
All Implemented Interfaces
jakarta.enterprise.event.NotificationOptions
Imports
java.util.HashMap, .Map, java.util.concurrent.Executor

The immutable implementation of NotificationOptions.
Author
Martin Kouba

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final Executor
private final Map<String, Object>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
get(String
name of the option to get value of
name
)

Implements jakarta.enterprise.event.NotificationOptions.get.

public Executor
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

executorback to summary
private final Executor executor
optionsback to summary
private final Map<String, Object> options

Constructor Detail

ImmutableNotificationOptionsback to summary
private ImmutableNotificationOptions(Executor executor, Map<String, Object> options)

Method Detail

getback to summary
public Object get(String name)

Implements jakarta.enterprise.event.NotificationOptions.get.

Parameters
name:String

Doc from jakarta.enterprise.event.NotificationOptions.get.

name of the option to get value of

Returns:Object

Doc from jakarta.enterprise.event.NotificationOptions.get.

the value of an option or null if no option for the given name exists

Annotations
@Override
getExecutorback to summary
public Executor getExecutor()

Implements jakarta.enterprise.event.NotificationOptions.getExecutor.

Returns:Executor

Doc from jakarta.enterprise.event.NotificationOptions.getExecutor.

the executor used to execute an asynchronous event

Annotations
@Override
jakarta.enterprise.event back to summary

pack-priv Class ImmutableNotificationOptions.Builder

extends Object
implements Builder
Class Inheritance
  • java.lang.Object
  • jakarta.enterprise.event.ImmutableNotificationOptions.Builder
All Implemented Interfaces
jakarta.enterprise.event.NotificationOptions.Builder

Field Summary

Modifier and TypeField and Description
private Executor
private Map<String, Object>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ImmutableNotificationOptions
public ImmutableNotificationOptions.Builder
public ImmutableNotificationOptions.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

executorback to summary
private Executor executor
optionsback to summary
private Map<String, Object> options

Constructor Detail

Builderback to summary
pack-priv Builder()

Method Detail

buildback to summary
public ImmutableNotificationOptions build()

Implements jakarta.enterprise.event.NotificationOptions.Builder.build.

setback to summary
public ImmutableNotificationOptions.Builder set(String name, Object value)

Implements jakarta.enterprise.event.NotificationOptions.Builder.set.

setExecutorback to summary
public ImmutableNotificationOptions.Builder setExecutor(Executor executor)

Implements jakarta.enterprise.event.NotificationOptions.Builder.setExecutor.