Uses of Interface
org.jgrapes.core.EventPipeline
Package
Description
Defines the interfaces and classes that provide
the core functionality of the JGrapes event driven component framework.
Classes implementing the public API of the library.
I/O related components built on top of the core package.
Classes for managing processes.
Utility classes, mainly for adapted buffers to specific needs.
Networking related I/O classes.
-
Uses of EventPipeline in org.jgrapes.core
Modifier and TypeMethodDescriptionManager.activeEventPipeline()
Returns the pipeline used when firing an event.Manager.newEventPipeline()
Return a newEventPipeline
that processes the added events using a thread from a thread pool.Manager.newEventPipeline
(ExecutorService executorService) Return a newEventPipeline
that processes the added events using threads from the given executor service.EventPipeline.overrideRestriction()
Overrides any restriction set byrestrictEventSource(EventPipeline)
for the nextfire(Event, Channel...)
invocation from the calling thread.EventPipeline.restrictEventSource
(EventPipeline sourcePipeline) Allow only the given source pipeline to fire events on this pipeline.Modifier and TypeMethodDescriptionEvent.processedBy()
Return the event pipeline that currently processes the event (if any).Modifier and TypeMethodDescriptionprotected void
Event.handlingError
(EventPipeline eventProcessor, Throwable throwable) Implements the default behavior for handling events thrown by a handler.EventPipeline.restrictEventSource
(EventPipeline sourcePipeline) Allow only the given source pipeline to fire events on this pipeline. -
Uses of EventPipeline in org.jgrapes.core.internal
Modifier and TypeMethodDescriptionComponentVertex.activeEventPipeline()
ComponentVertex.newEventPipeline()
ComponentVertex.newEventPipeline
(ExecutorService executorService) Modifier and TypeMethodDescriptionprotected abstract void
EventBase.handlingError
(EventPipeline eventProcessor, Throwable throwable) Invoked when an exception occurs while invoking a handler for an event. -
Uses of EventPipeline in org.jgrapes.io
Modifier and TypeMethodDescriptionIOSubchannel.DefaultIOSubchannel.responsePipeline()
IOSubchannel.responsePipeline()
Gets theEventPipeline
that can be used for events going back to the initiator of this connection.Modifier and TypeMethodDescriptionstatic IOSubchannel
IOSubchannel.create
(Component component, EventPipeline responsePipeline) Creates a new subchannel of the given component’s channel with the given event pipeline and a buffer pool with two buffers sized 4096.ModifierConstructorDescriptionDefaultIOSubchannel
(Channel mainChannel, EventPipeline responsePipeline) Creates a new instance with the given main channel and response pipeline. -
Uses of EventPipeline in org.jgrapes.io.process
Modifier and TypeMethodDescriptionProcessManager.ProcessChannel.downPipeline()
Gets the down pipeline. -
Uses of EventPipeline in org.jgrapes.io.util
Modifier and TypeMethodDescriptionConnectionManager.Connection.downPipeline()
Gets the down pipeline.ModifierConstructorDescriptionAbstractBufferWriter
(IOSubchannel channel, EventPipeline eventPipeline) Creates a new instance that usesOutput
events to dispatch buffers on the given channel, using the given event pipeline.BufferedReaderPipeline
(BufferedReader in, IOSubchannel channel, EventPipeline eventPipeline) Creates a new pipeline that sends the lines from the given reader as events on the given channel, using the given event pipeline.ByteBufferOutputStream
(IOSubchannel channel, EventPipeline eventPipeline) Creates a new instance that usesOutput
events to dispatch buffers on the given channel, using the given event pipeline.ByteBufferWriter
(IOSubchannel channel, EventPipeline eventPipeline) Creates a new instance that usesOutput
events to dispatch buffers on the given channel, using the given event pipeline.CharBufferWriter
(IOSubchannel channel, EventPipeline eventPipeline) Creates a new instance that usesOutput
events to dispatch buffers on the given channel, using the given event pipeline.InputStreamPipeline
(InputStream in, IOSubchannel channel, EventPipeline eventPipeline) Creates a new pipeline that sends the data from the given input stream as events on the given channel, using the given event pipeline.JsonReader
(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<R> resultType, EventPipeline pipeline, Channel channel) Instantiates a new JSON reader.JsonReader
(Class<R> resultType, EventPipeline pipeline, Channel channel) Instantiates a new JSON reader that uses a default object mapper.LinkedIOSubchannel
(Manager hub, Channel mainChannel, IOSubchannel upstreamChannel, EventPipeline responsePipeline) Creates a new LinkedIOSubchannel for a given main channel that links to the give I/O subchannel.LinkedIOSubchannel
(Manager hub, Channel mainChannel, IOSubchannel upstreamChannel, EventPipeline responsePipeline, boolean linkBack) Creates a new LinkedIOSubchannel for a given main channel that links to a given I/O subchannel. -
Uses of EventPipeline in org.jgrapes.net
Modifier and TypeMethodDescriptionSocketConnectionManager.SocketChannelImpl.downPipeline()
Gets the down pipeline.