Uses of Class
org.jgrapes.core.Event
Packages that use 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
Classes in org.jgrapes.core with type parameters of type EventModifier and TypeClassDescriptionclassCompletionEvent<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.Subclasses of Event in org.jgrapes.coreModifier and TypeClassDescriptionclassCompletionEvent<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 classNamedEvent<T>A class for events using a simple name as the event’s kind.Methods in org.jgrapes.core with type parameters of type EventModifier 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.Methods in org.jgrapes.core that return EventModifier 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.Methods in org.jgrapes.core that return types with arguments of type EventModifier and TypeMethodDescriptionEvent.completionEvents()Returns the events to be thrown when this event has completed (seeisDone()).Methods in org.jgrapes.core with parameters of type EventModifier 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.Constructors in org.jgrapes.core with parameters of type EventModifierConstructorDescriptionCompletionLock(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
Subclasses of Event in org.jgrapes.core.annotationModifier and TypeClassDescriptionstatic final classThe default value for theeventsparameter of the annotation. -
Uses of Event in org.jgrapes.core.events
Subclasses of Event in org.jgrapes.core.eventsModifier and TypeClassDescriptionclassSignals the addition of a component (or subtree) to the component tree.classSignals the removal of a component from the component tree.classThis event signals that an error occurred while processing an event.classThis event signals that a throwable occurred while executing a handler.classAn event that signals the start of the application.classThe event that signals the completion of theStartevent.classAn event that causes an application to shut down.Methods in org.jgrapes.core.events that return EventModifier and TypeMethodDescriptionEvent<?> Error.event()Returns the event that was handled when the problem occurred.Constructors in org.jgrapes.core.events with parameters of type EventModifierConstructorDescriptionCreates 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
Subclasses of Event in org.jgrapes.core.internalModifier and TypeClassDescriptionclassActionEvent<T>A base class for events that perform an action instead of being handled.Fields in org.jgrapes.core.internal with type parameters of type EventModifier and TypeFieldDescriptionEventBase.completionEventsThe events to be fired upon completion.Methods in org.jgrapes.core.internal with type parameters of type EventModifier 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.Methods in org.jgrapes.core.internal that return EventModifier 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> Methods in org.jgrapes.core.internal with parameters of type EventModifier 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
Subclasses of Event in org.jgrapes.http.eventsModifier and TypeClassDescriptionclassCauses a session manager to discard the given session.classIndicates that a host name could not be resolved.classSignals that a HTTP connection for aHttpRequesthas been established.classBase class for events that signal the reception of a message.classIndicates that a component has accepted aRequest.In.Getwith a header that requested an upgrade to another protocol.classRequest<R>The base class for all HTTP requests such asRequest.In.Get,Request.In.Postetc.static classThe base class for all incoming HTTP requests.static classThe associated completion event.static classRepresents a HTTP CONNECT request.static classThe Class Delete.static classRepresents a HTTP GET request.static classRepresents a HTTP HEAD request.static classRepresents a HTTP OPTIONS request.static classRepresents a HTTP POST request.static classRepresents a HTTP PUT request.static classRepresents a HTTP TRACE request.static classThe base class for all outgoing HTTP requests.static classRepresents a HTTP CONNECT request.static classRepresents a HTTP DELETE request.static classRepresents a HTTP GET request.static classRepresents a HTTP HEAD request.static classRepresents a HTTP OPTIONS request.static classRepresents a HTTP POST request.static classRepresents a HTTP PUT request.static classRepresents a HTTP TRACE request.classRepresents the response (header).classFired when a protocol upgrade was successful.classAn event that provides the close information when a WebSockt is closed.Constructors in org.jgrapes.http.events with parameters of type Event -
Uses of Event in org.jgrapes.io
Methods in org.jgrapes.io with type parameters of type Event -
Uses of Event in org.jgrapes.io.events
Subclasses of Event in org.jgrapes.io.eventsModifier and TypeClassDescriptionclassThis event causes the initiator of an I/O channel to shutdown the channel.classClosed<T>This event signals that an I/O subchannel will no longer be used.classIndicates a problem while opening a network connection.classclassThis event signals that an I/O subchannel has been closed on the other end.final classThis event signals that a new chunk of data has successfully been obtained from some source.classA special kind ofErrorthat signals I/O related problems.classEvents of this type signal that a new chunk of data is available for processing.classSignal a registration request to a registry.static classThe completion event for aNioRegistrationevent.classOpened<T>This event signals that an I/O resource has successfully been opened (usually in response to some …Open event).classA base class for events that cause a file to be opened.classOpening<T>This event is fired onIOSubchannels that are created by provider components before their first usage forInputorOutputevents.classclassThis event signals that a new chunk of internally generated data is to be forwarded to some destination.classFired when a process has exited.classFired when a process has been started.classFired by an initiator of connections that maintains a pool of such connections if no more connections are available.classCauses theFileStoragecomponent to write the data from allInputevents 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.classCauses theFileStoragecomponent to write the data from allOutputevents 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.classStarts a new process managed by theProcessManagercomponent that handles the event.classIndicates a problem while starting a process.classCauses the content of a file to be streamed as a sequence ofOutputevents (terminated by an event with the end of record flag set) on the channel that this event is fired on.Constructors in org.jgrapes.io.events with parameters of type EventModifierConstructorDescriptionConnectError(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
Subclasses of Event in org.jgrapes.io.util.eventsModifier and TypeClassDescriptionclassDataInput<T>Signals that some data is available for handling.classSignals an error that occurred while parsing JSON. -
Uses of Event in org.jgrapes.mail
Classes in org.jgrapes.mail with type parameters of type EventModifier and TypeClassDescriptionclassMailConnectionManager<C extends MailConnectionManager<C,O>.AbstractMailChannel, O extends Event<?>> Provides a base class for mail components using connections.Constructors in org.jgrapes.mail with parameters of type EventModifierConstructorDescriptionSenderChannel(Event<?> event, Channel mainChannel, Properties sessionProps, Optional<Password> password) Instantiates a new monitor channel. -
Uses of Event in org.jgrapes.mail.events
Subclasses of Event in org.jgrapes.mail.eventsModifier and TypeClassDescriptionclassSignals the retrieval of mails (update) by aMailMonitor.classFired when the requested connection has been established.classCommon base class for events that open a mail connection for sending or receiving mail.classAn event that opens folders on the store defined by the base class for monitoring.classFired to open a connection for sending mails.classIndicates the arrival of a new message.classTriggers the retrieval of mails (update) by aMailMonitor. -
Uses of Event in org.jgrapes.net.events
Subclasses of Event in org.jgrapes.net.eventsModifier and TypeClassDescriptionclassThis event signals that a new connection has been made by a client.classThis event signals that a new connection has been made by a client.classConnected<T>This event signals that a new connection has been established.classSignals that a server has bound to a socket address and is ready to accept connections. -
Uses of Event in org.jgrapes.util.events
Subclasses of Event in org.jgrapes.util.eventsModifier and TypeClassDescriptionclassAn event to indicate that configuration information has been updated.classInforms about changes of a watched file.classA specialConfigurationUpdateevent that is used for reporting the configuration on startup.classA specialConfigurationUpdateevent that is used by thePreferencesStorefor reporting the configuration on startup.classDefines an optional completion event for aKeyValueStoreQuery.classA query event for a key/value store.classAn event that triggers updates or deletions in a key/value store.classRegisters a path to be watched with aFileSystemWatcher.