Uses of Class
org.jgrapes.core.Event
Package
Description
Defines the interfaces and classes that provide
the core functionality of the JGrapes event driven component framework.
Annotations used by the library.
Core events.
Classes implementing the public API of the library.
Provides the events handled by the server components.
I/O related components built on top of the core package.
Provides the events used by the I/O related components.
Events associated with classes from
org.jgrapes.io.util
.Components for handling mail.
Mail related events.
-
Uses of Event in org.jgrapes.core
Modifier and TypeClassDescriptionclass
CompletionEvent<T extends Event<?>>
A base class for events that signal the completion of some other (monitored) event and provide this other event as their result.Modifier and TypeClassDescriptionclass
CompletionEvent<T extends Event<?>>
A base class for events that signal the completion of some other (monitored) event and provide this other event as their result.final class
NamedEvent<T>
A class for events using a simple name as the event’s kind.Modifier and TypeMethodDescription<T extends Event<?>>
TAdd an event to be sent to components listening for such events on the given channels to the end of the queue.Modifier and TypeMethodDescriptionEvent.addCompletionEvent
(Event<?> completionEvent) Adds the given event to the events to be thrown when this event has completed (seeFuture.isDone()
).<T> Event
<T> Fires the given event on the given channel.Event.setChannels
(Channel... channels) Sets the channels that the event is fired on if no channels are specified explicitly when firing the event (seeManager.fire(Event, Channel...)
).Event.setRequiresResult
(boolean value) Sets the result of handling this event.Event.stop()
Can be called during the execution of an event handler to indicate that the event should not be processed further.Tie the result of this event to the result of the other event.Modifier and TypeMethodDescriptionEvent.completionEvents()
Returns the events to be thrown when this event has completed (seeisDone()
).Modifier and TypeMethodDescriptionEvent.addCompletionEvent
(Event<?> completionEvent) Adds the given event to the events to be thrown when this event has completed (seeFuture.isDone()
).<T> Event
<T> Fires the given event on the given channel.Tie the result of this event to the result of the other event.ModifierConstructorDescriptionCompletionLock
(Event<?> event) Creates a completion lock without timeout.CompletionLock
(Event<?> event, long timeout) Creates a completion lock for the given event with the given timeout. -
Uses of Event in org.jgrapes.core.annotation
Modifier and TypeClassDescriptionstatic final class
The default value for theevents
parameter of the annotation. -
Uses of Event in org.jgrapes.core.events
Modifier and TypeClassDescriptionclass
Signals the addition of a component (or subtree) to the component tree.class
Signals the removal of a component from the component tree.class
This event signals that an error occurred while processing an event.class
This event signals that a throwable occurred while executing a handler.class
An event that signals the start of the application.class
The event that signals the completion of theStart
event.class
An event that causes an application to shut down.Modifier and TypeMethodDescriptionEvent
<?> Error.event()
Returns the event that was handled when the problem occurred.ModifierConstructorDescriptionCreates a new event.Creates a new event caused by the given throwable.Creates a new event caused by the given throwable.HandlingError
(Event<?> event, Throwable throwable) Creates a new event caused by the given throwable. -
Uses of Event in org.jgrapes.core.internal
Modifier and TypeClassDescriptionclass
ActionEvent<T>
A base class for events that perform an action instead of being handled.Modifier and TypeFieldDescriptionEventBase.completionEvents
The events to be fired upon completion.Modifier and TypeMethodDescription<T extends Event<?>>
T<T extends Event<?>>
Tstatic <T,
E extends Event<T>>
EEventBase.onCompletion
(E event, Consumer<E> consumer) Invokes the consumer when the event is completed.Modifier and TypeMethodDescriptionEventBase.addCompletionEvent
(Event<?> completionEvent) Adds the given event to the events to be thrown when this event has completed (seeFuture.isDone()
).EventBase.disableTracking()
Disables tracking for this event and all events generated when handling it.<T> Event
<T> Modifier and TypeMethodDescriptionEventBase.addCompletionEvent
(Event<?> completionEvent) Adds the given event to the events to be thrown when this event has completed (seeFuture.isDone()
).<T> Event
<T> -
Uses of Event in org.jgrapes.http.events
Modifier and TypeClassDescriptionclass
Causes a session manager to discard the given session.class
Indicates that a host name could not be resolved.class
Signals that a HTTP connection for aHttpRequest
has been established.class
Base class for events that signal the reception of a message.class
Indicates that a component has accepted aRequest.In.Get
with a header that requested an upgrade to another protocol.class
Request<R>
The base class for all HTTP requests such asRequest.In.Get
,Request.In.Post
etc.static class
The base class for all incoming HTTP requests.static class
The associated completion event.static class
Represents a HTTP CONNECT request.static class
The Class Delete.static class
Represents a HTTP GET request.static class
Represents a HTTP HEAD request.static class
Represents a HTTP OPTIONS request.static class
Represents a HTTP POST request.static class
Represents a HTTP PUT request.static class
Represents a HTTP TRACE request.static class
The base class for all outgoing HTTP requests.static class
Represents a HTTP CONNECT request.static class
Represents a HTTP DELETE request.static class
Represents a HTTP GET request.static class
Represents a HTTP HEAD request.static class
Represents a HTTP OPTIONS request.static class
Represents a HTTP POST request.static class
Represents a HTTP PUT request.static class
Represents a HTTP TRACE request.class
Represents the response (header).class
Fired when a protocol upgrade was successful.class
An event that provides the close information when a WebSockt is closed. -
Uses of Event in org.jgrapes.io
-
Uses of Event in org.jgrapes.io.events
Modifier and TypeClassDescriptionclass
This event causes the initiator of an I/O channel to shutdown the channel.class
Closed<T>
This event signals that an I/O subchannel will no longer be used.class
Indicates a problem while opening a network connection.class
class
This event signals that an I/O subchannel has been closed on the other end.final class
This event signals that a new chunk of data has successfully been obtained from some source.class
A special kind ofError
that signals I/O related problems.class
Events of this type signal that a new chunk of data is available for processing.class
Signal a registration request to a registry.static class
The completion event for aNioRegistration
event.class
Opened<T>
This event signals that an I/O resource has successfully been opened (usually in response to some …Open event).class
A base class for events that cause a file to be opened.class
Opening<T>
This event is fired onIOSubchannel
s that are created by provider components before their first usage forInput
orOutput
events.class
class
This event signals that a new chunk of internally generated data is to be forwarded to some destination.class
Fired when a process has exited.class
Fired when a process has been started.class
Fired by an initiator of connections that maintains a pool of such connections if no more connections are available.class
Causes theFileStorage
component to write the data from allInput
events on the channel that this event is fired on to a file until an event with the end of record flag set is sent on the channel.class
Causes theFileStorage
component to write the data from allOutput
events on the channel that this event is fired on to a file until an event with the end of record flag set is sent on the channel.class
Starts a new process managed by theProcessManager
component that handles the event.class
Indicates a problem while starting a process.class
Causes the content of a file to be streamed as a sequence ofOutput
events (terminated by an event with the end of record flag set) on the channel that this event is fired on.ModifierConstructorDescriptionConnectError
(Event<?> event, String message) ConnectError
(Event<?> event, String message, Throwable throwable) ConnectError
(Event<?> event, Throwable throwable) Creates a new instance.Creates a new instance.Creates a new instance.StartProcessError
(Event<?> event, String message) StartProcessError
(Event<?> event, String message, Throwable throwable) StartProcessError
(Event<?> event, Throwable throwable) -
Uses of Event in org.jgrapes.io.util.events
Modifier and TypeClassDescriptionclass
DataInput<T>
Signals that some data is available for handling.class
Signals an error that occurred while parsing JSON. -
Uses of Event in org.jgrapes.mail
Modifier and TypeClassDescriptionclass
MailConnectionManager<C extends MailConnectionManager<C,
O>.AbstractMailChannel, O extends Event<?>> Provides a base class for mail components using connections.ModifierConstructorDescriptionSenderChannel
(Event<?> event, Channel mainChannel, Properties sessionProps, Optional<Password> password) Instantiates a new monitor channel. -
Uses of Event in org.jgrapes.mail.events
Modifier and TypeClassDescriptionclass
Signals the retrieval of mails (update) by aMailMonitor
.class
Fired when the requested connection has been established.class
Common base class for events that open a mail connection for sending or receiving mail.class
An event that opens folders on the store defined by the base class for monitoring.class
Fired to open a connection for sending mails.class
Indicates the arrival of a new message.class
Triggers the retrieval of mails (update) by aMailMonitor
. -
Uses of Event in org.jgrapes.net.events
Modifier and TypeClassDescriptionclass
This event signals that a new connection has been made by a client.class
This event signals that a new connection has been made by a client.class
Connected<T>
This event signals that a new connection has been established.class
Signals that a server has bound to a socket address and is ready to accept connections. -
Uses of Event in org.jgrapes.util.events
Modifier and TypeClassDescriptionclass
An event to indicate that configuration information has been updated.class
Informs about changes of a watched file.class
A specialConfigurationUpdate
event that is used for reporting the configuration on startup.class
A specialConfigurationUpdate
event that is used by thePreferencesStore
for reporting the configuration on startup.class
Defines an optional completion event for aKeyValueStoreQuery
.class
A query event for a key/value store.class
An event that triggers updates or deletions in a key/value store.class
Registers a path to be watched with aFileSystemWatcher
.