Top Inners Fields Constructors Methods
jdk.jfr.internal.consumer

pack-priv final Class Dispatcher

extends Object
Class Inheritance
Imports
java.time.Instant, java.util.ArrayList, .List, java.util.function.Consumer, jdk.jfr.EventType, jdk.jfr.consumer.MetadataEvent, .RecordedEvent, jdk.jfr.internal.LongMap, jdk.jfr.internal.consumer.ChunkParser.ParserConfiguration

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private Dispatcher.EventDispatcher[]
private EventType
private final Runnable[]
private final LongMap<Dispatcher.EventDispatcher[]>
private final Dispatcher.EventDispatcher[]
pack-priv final long
pack-priv final Instant
private final Consumer<Throwable>[]
private final Runnable[]
private final Consumer<MetadataEvent>[]
pack-priv final ChunkParser.ParserConfiguration
pack-priv final long
pack-priv final Instant

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static ParserFilter
private void
pack-priv void
private void
public boolean
public void
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cacheDispatchersback to summary
private Dispatcher.EventDispatcher[] cacheDispatchers
cacheEventTypeback to summary
private EventType cacheEventType
closeActionsback to summary
private final Runnable[] closeActions
dispatcherLookupback to summary
private final LongMap<Dispatcher.EventDispatcher[]> dispatcherLookup
dispatchersback to summary
private final Dispatcher.EventDispatcher[] dispatchers
endNanosback to summary
pack-priv final long endNanos
endTimeback to summary
pack-priv final Instant endTime
errorActionsback to summary
private final Consumer<Throwable>[] errorActions
flushActionsback to summary
private final Runnable[] flushActions
metadataActionsback to summary
private final Consumer<MetadataEvent>[] metadataActions
parserConfigurationback to summary
pack-priv final ChunkParser.ParserConfiguration parserConfiguration
startNanosback to summary
pack-priv final long startNanos
startTimeback to summary
pack-priv final Instant startTime

Constructor Detail

Dispatcherback to summary
public Dispatcher(StreamConfiguration c)
Annotations
@SuppressWarnings:rawtypes, unchecked

Method Detail

buildFilterback to summary
private static ParserFilter buildFilter(Dispatcher.EventDispatcher[] dispatchers)
defaultErrorHandlerback to summary
private void defaultErrorHandler(Throwable e)
dispatchback to summary
pack-priv void dispatch(RecordedEvent event)
handleErrorback to summary
private void handleError(Throwable e)
hasMetadataHandlerback to summary
public boolean hasMetadataHandler()
runCloseActionsback to summary
public void runCloseActions()
runFlushActionsback to summary
public void runFlushActions()
runMetadataActionsback to summary
public void runMetadataActions(MetadataEvent event)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

jdk.jfr.internal.consumer back to summary

pack-priv final Class Dispatcher.EventDispatcher

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Consumer<RecordedEvent>
private final String
private static final Dispatcher.EventDispatcher[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
accepts(EventType eventType)

public Consumer<RecordedEvent>
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actionback to summary
private final Consumer<RecordedEvent> action
eventNameback to summary
private final String eventName
NO_DISPATCHERSback to summary
private static final Dispatcher.EventDispatcher[] NO_DISPATCHERS

Constructor Detail

EventDispatcherback to summary
public EventDispatcher(String eventName, Consumer<RecordedEvent> action)

Method Detail

acceptsback to summary
private boolean accepts(EventType eventType)
getActionback to summary
public Consumer<RecordedEvent> getAction()
offerback to summary
private void offer(RecordedEvent event)