Skip navigation links
$ A B C D E F G H I J M N O P R S T U V W Y 

$

$() - Static method in class reactor.bus.selector.Selectors
A short-hand alias for Selectors.anonymous().
$(T) - Static method in class reactor.bus.selector.Selectors
A short-hand alias for Selectors.object(T).
$(String, Object...) - Static method in class reactor.bus.selector.Selectors
Creates a Selector based on the given string format and arguments.

A

accept(Event<?>) - Method in class reactor.bus.EventBus
 
accept(E) - Method in class reactor.bus.EventBus.ReplyToConsumer
 
accept(Event<T>) - Method in class reactor.bus.support.EventConsumer
 
accept(T) - Method in class reactor.bus.support.NotifyConsumer
 
anonymous() - Static method in class reactor.bus.selector.Selectors
Creates an anonymous Selector.
AnonymousKey() - Constructor for class reactor.bus.selector.Selectors.AnonymousKey
 
asMap() - Method in class reactor.bus.Event.Headers
Get these headers as an unmodifiable Map.

B

batch(int, Consumer<T>) - Method in class reactor.bus.batcher.OperationBatcher
If the Consumer set in the spec is a BatchConsumer, then the start method will be invoked before the batch is published, then all the events of the batch are published to the consumer, then the batch end is published.
blockingWaitStrategy() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Set com.lmax.disruptor.BlockingWaitStrategy as wait strategy.
broadcastEventRouting() - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the component's EventRouter to broadcast events to all matching consumers
Bus<T> - Interface in reactor.bus
Basic unit of event handling in Reactor.
BusPublisher<T> - Class in reactor.bus.publisher
Emit signals whenever an Event arrives from the Selector topic from the Bus.
BusPublisher(Bus<T>, Selector) - Constructor for class reactor.bus.publisher.BusPublisher
 
busySpinWaitStrategy() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Set com.lmax.disruptor.BusySpinWaitStrategy as wait strategy.

C

CachableRegistration<T> - Class in reactor.bus.registry
 
CachableRegistration(Selector, T, Runnable) - Constructor for class reactor.bus.registry.CachableRegistration
 
cacheMiss(Object) - Method in class reactor.bus.registry.CachingRegistry
 
CachingRegistry<T> - Class in reactor.bus.registry
Implementation of Registry that uses a partitioned cache that partitions on thread id.
callback() - Method in class reactor.bus.support.CallbackEvent
Trigger callback with current payload
CallbackEvent<T> - Class in reactor.bus.support
Simple Event implementation that attaches a callback to an Event and passes it to a delegate Consumer.
CallbackEvent(T, Consumer) - Constructor for class reactor.bus.support.CallbackEvent
 
CallbackEvent(Event.Headers, T, Consumer) - Constructor for class reactor.bus.support.CallbackEvent
 
CallbackEvent(Event.Headers, T, Consumer, Consumer<Throwable>) - Constructor for class reactor.bus.support.CallbackEvent
 
cancel() - Method in class reactor.bus.registry.CachableRegistration
 
cancel() - Method in interface reactor.bus.registry.Registration
Cancel this Registration by removing it from its registry.
cancel() - Method in class reactor.bus.timer.EventTimer
 
cancelAfterUse() - Method in class reactor.bus.registry.CachableRegistration
 
cancelAfterUse() - Method in interface reactor.bus.registry.Registration
Cancel this Registration after it has been selected and used.
ClassSelector - Class in reactor.bus.selector
Implementation of Selector that uses Class.isAssignableFrom(Class) to determine a match.
ClassSelector(Class<?>) - Constructor for class reactor.bus.selector.ClassSelector
Creates a new ClassSelector that will match keys that are the same as, or are a super type of the given type, i.e.
clear() - Method in class reactor.bus.registry.CachingRegistry
 
clear() - Method in interface reactor.bus.registry.Registry
Clear the Registry, resetting its state and calling Registration.cancel() for any active Registration.
clear() - Method in class reactor.bus.registry.SimpleCachingRegistry
 
clone() - Method in class reactor.bus.selector.ObjectSelector
 
commit() - Method in class reactor.bus.batcher.Operation
Commit the Operation to the underlying datastructure.
commit(List<Operation<T>>) - Method in class reactor.bus.batcher.OperationBatcher
Commit a list of Operations by doing a batch publish.
config() - Static method in class reactor.bus.EventBus
Create a new EventBusSpec to configure a Reactor.
configure(Dispatcher, Environment) - Method in class reactor.bus.spec.DispatcherComponentSpec
 
configure(EventBus, Environment) - Method in class reactor.bus.spec.EventBusSpec
 
configure(EventBus, Environment) - Method in class reactor.bus.spec.EventRoutingComponentSpec
 
configure(Dispatcher, Environment) - Method in class reactor.bus.spec.EventRoutingComponentSpec
 
consume(Consumer<T>) - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
When data is mutated and published into the Processor, invoke the given Consumer and pass the mutated data.
consumeError(Throwable) - Method in class reactor.bus.Event
Consumes error, using a producer defined callback
ConsumerFilteringRouter - Class in reactor.bus.routing
An Router that filters consumers before routing events to them.
ConsumerFilteringRouter(Filter) - Constructor for class reactor.bus.routing.ConsumerFilteringRouter
Creates a new ConsumerFilteringEventRouter that will use the filter to filter consumers.
consumerNotFoundHandler(Consumer<Object>) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the callback to invoke if a notification key is sent into this component and there are no consumers registered to respond to it.
consumerRegistry(Registry<Consumer<? extends Event<?>>>) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the Registry to use when creating this component.
contains(String) - Method in class reactor.bus.Event.Headers
Determine whether the headers contain a value for the given name.
copy() - Method in class reactor.bus.Event
Create a copy of this event, reusing same headers, data and replyTo
copy(E) - Method in class reactor.bus.Event
Create a copy of this event, reusing same headers and replyTo
copy(X) - Method in class reactor.bus.EventBus.ReplyToEvent
 
copy(X) - Method in class reactor.bus.support.CallbackEvent
 
create() - Static method in class reactor.bus.EventBus
Create a new synchronous EventBus
create(Environment) - Static method in class reactor.bus.EventBus
Create a new EventBus using the given Environment.
create(Dispatcher) - Static method in class reactor.bus.EventBus
Create a new EventBus using the given Dispatcher.
create(Environment, String) - Static method in class reactor.bus.EventBus
Create a new EventBus using the given Environment and dispatcher name.
create(Environment, Dispatcher) - Static method in class reactor.bus.EventBus
Create a new EventBus using the given Environment and Dispatcher.
create() - Static method in class reactor.bus.registry.Registries
 
create(boolean, boolean, Consumer<Object>) - Static method in class reactor.bus.registry.Registries
 

D

dataBufferSize(int) - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
How many data objects to pre-allocate in the buffer.
dataSupplier(Supplier<T>) - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Use the given Supplier to provide new instances of the data object for pre-allocation.
defaultDispatcher() - Method in class reactor.bus.spec.DispatcherComponentSpec
Configures the component to use the configured Environment's default dispatcher
defaultEventAllocator() - Static method in class reactor.bus.alloc.EventAllocator
Default Event Allocator, uses ReferenceCountingAllocator for allocating and recycling events.
dispatcher(Dispatcher) - Method in class reactor.bus.spec.DispatcherComponentSpec
Configures the component to use the given dispatcher
dispatcher(String) - Method in class reactor.bus.spec.DispatcherComponentSpec
Configures the component to the dispatcher in the configured Environment with the given dispatcherName
DispatcherComponentSpec<SPEC extends DispatcherComponentSpec<SPEC,TARGET>,TARGET> - Class in reactor.bus.spec
A generic environment-aware class for specifying components that need to be configured with an Environment and Dispatcher.
DispatcherComponentSpec() - Constructor for class reactor.bus.spec.DispatcherComponentSpec
 
dispatchErrorHandler(Consumer<Throwable>) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the component's error handler for any errors occurring during dispatch (e.g.
doFilter(List<T>, Object) - Method in class reactor.bus.filter.FirstFilter
 
doFilter(List<T>, Object) - Method in class reactor.bus.filter.PassThroughFilter
 
doFilter(List<T>, Object) - Method in class reactor.bus.filter.RandomFilter
 
doFilter(List<T>, Object) - Method in class reactor.bus.filter.RoundRobinFilter
 

E

env(Environment) - Method in class reactor.bus.spec.DispatcherComponentSpec
Configures the spec, and potentially the component being configured, to use the given environment
Event<T> - Class in reactor.bus
Wrapper for an object that needs to be processed by Consumers.
Event(Class<T>) - Constructor for class reactor.bus.Event
Creates a new Event based on the type T of
Event(Event.Headers, T) - Constructor for class reactor.bus.Event
Creates a new Event with the given headers and data.
Event(Event.Headers, T, Consumer<Throwable>) - Constructor for class reactor.bus.Event
Creates a new Event with the given headers, data and .
Event(T) - Constructor for class reactor.bus.Event
Creates a new Event with the given data.
Event.Headers - Class in reactor.bus
Headers are a Map-like structure of name-value pairs.
EventAllocator - Class in reactor.bus.alloc
Generic Event Allocator.
EventAllocator() - Constructor for class reactor.bus.alloc.EventAllocator
 
EventAllocator(Class[]) - Constructor for class reactor.bus.alloc.EventAllocator
Create a new EventAllocator, containing pre-created Allocators for given es.
EventBus - Class in reactor.bus
A reactor is an event gateway that allows other components to register Event Consumers that can subsequently be notified of events.
EventBus(Dispatcher) - Constructor for class reactor.bus.EventBus
Create a new Reactor that uses the given Dispatcher.
EventBus(Dispatcher, Router) - Constructor for class reactor.bus.EventBus
Create a new Reactor that uses the given Dispatcher.
EventBus(Dispatcher, Router, Consumer<Throwable>, Consumer<Throwable>) - Constructor for class reactor.bus.EventBus
 
EventBus(Registry<Consumer<? extends Event<?>>>, Dispatcher, Router, Consumer<Throwable>, Consumer<Throwable>) - Constructor for class reactor.bus.EventBus
Create a new Reactor that uses the given dispatacher and eventRouter.
EventBus.ReplyToConsumer<E extends Event<?>,V> - Class in reactor.bus
 
EventBus.ReplyToEvent<T> - Class in reactor.bus
 
EventBusSpec - Class in reactor.bus.spec
A helper class for configuring a new EventBus.
EventBusSpec() - Constructor for class reactor.bus.spec.EventBusSpec
 
EventConsumer<T> - Class in reactor.bus.support
Simple Consumer implementation that pulls the data from an Event and passes it to a delegate Consumer.
EventConsumer(Consumer<T>) - Constructor for class reactor.bus.support.EventConsumer
Creates a new EventConsumer that will pass event data to the given delegate.
EventFactorySupplier<T> - Class in reactor.bus.alloc
A Supplier implementation that instantiates Events based on Event data type.
EventFactorySupplier(Class<T>) - Constructor for class reactor.bus.alloc.EventFactorySupplier
 
eventFilter(Filter) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Assigns the component's Filter
eventRouter(Router) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Assigns the component's EventRouter
EventRoutingComponentSpec<SPEC extends EventRoutingComponentSpec<SPEC,TARGET>,TARGET> - Class in reactor.bus.spec
A generic environment-aware class for specifying components that need to be configured with an Environment, Dispatcher, and Router.
EventRoutingComponentSpec() - Constructor for class reactor.bus.spec.EventRoutingComponentSpec
 
EventRoutingComponentSpec.EventRoutingStrategy - Enum in reactor.bus.spec
 
EventTimer - Class in reactor.bus.timer
A hashed wheel timer implementation that uses a Registry and custom Selectors to determine when tasks should be executed.

F

Filter - Interface in reactor.bus.filter
A Filter is used to filter a list of items.
filter(List<T>, Object) - Method in interface reactor.bus.filter.Filter
Filters the given List of items.
filter(List<T>, Object) - Method in class reactor.bus.filter.TraceableDelegatingFilter
 
firstEventRouting() - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the component's EventRouter to route events to the first of the matching consumers
FirstFilter - Class in reactor.bus.filter
A Filter implementation that returns the first item.
FirstFilter() - Constructor for class reactor.bus.filter.FirstFilter
 

G

get(Class<T>) - Method in class reactor.bus.alloc.EventAllocator
Allocate an object from the internal pool, based on the type of Event.
get() - Method in class reactor.bus.alloc.EventFactorySupplier
 
get() - Method in class reactor.bus.batcher.Operation
Get the Operation payload.
get() - Method in class reactor.bus.batcher.OperationBatcher
 
get() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
 
get(String) - Method in class reactor.bus.Event.Headers
Get the value for the given header.
get() - Method in class reactor.bus.spec.DispatcherComponentSpec
 
getConsumerRegistry() - Method in class reactor.bus.EventBus
Get the Registry is use to maintain the Consumers currently listening for events on this Reactor.
getData() - Method in class reactor.bus.Event
Get the internal data being wrapped.
getDelegate() - Method in class reactor.bus.EventBus.ReplyToConsumer
 
getDispatcher() - Method in class reactor.bus.EventBus
Get the Dispatcher currently in use.
getDispatchErrorHandler() - Method in class reactor.bus.EventBus
 
getErrorConsumer() - Method in class reactor.bus.Event
Get the internal error consumer callback being wrapped.
getFilter() - Method in class reactor.bus.routing.ConsumerFilteringRouter
Returns the Filter being used
getHeaderResolver() - Method in class reactor.bus.selector.MatchAllSelector
 
getHeaderResolver() - Method in class reactor.bus.selector.ObjectSelector
 
getHeaderResolver() - Method in class reactor.bus.selector.RegexSelector
 
getHeaderResolver() - Method in interface reactor.bus.selector.Selector
Return a component that can resolve headers from a key
getHeaderResolver() - Method in class reactor.bus.selector.SetMembershipSelector
 
getHeaderResolver() - Method in class reactor.bus.selector.UriPathSelector
 
getHeaderResolver() - Method in class reactor.bus.selector.UriSelector
 
getHeaders() - Method in class reactor.bus.Event
Get the Event.Headers attached to this event.
getId() - Method in class reactor.bus.Event
Get the globally-unique id of this event.
getId() - Method in class reactor.bus.EventBus
Get the unique, time-used UUID of this Reactor.
getKey() - Method in class reactor.bus.Event
Get the key this event was notified on.
getObject() - Method in class reactor.bus.registry.CachableRegistration
 
getObject() - Method in interface reactor.bus.registry.Registration
The object that was registered
getObject() - Method in class reactor.bus.selector.MatchAllSelector
 
getObject() - Method in class reactor.bus.selector.ObjectSelector
 
getObject() - Method in interface reactor.bus.selector.Selector
Get the object being used for comparisons and equals checks.
getObject() - Method in class reactor.bus.selector.SetMembershipSelector
 
getOrigin() - Method in class reactor.bus.Event.Headers
Get the origin header
getReplyTo() - Method in class reactor.bus.Event
Get the key to send replies to.
getReplyToObservable() - Method in class reactor.bus.EventBus.ReplyToEvent
 
getResolution() - Method in class reactor.bus.timer.EventTimer
 
getRouter() - Method in class reactor.bus.EventBus
Get the Router used to route events to Consumers.
getSelector() - Method in class reactor.bus.registry.CachableRegistration
 
getSelector() - Method in interface reactor.bus.registry.Registration
The Selector that was used when the registration was made.
getUncaughtErrorHandler() - Method in class reactor.bus.EventBus
 

H

hashCode() - Method in class reactor.bus.selector.Selectors.AnonymousKey
 
HeaderResolver<T> - Interface in reactor.bus.selector
Responsible for extracting any applicable headers from a key.
Headers(Map<String, Object>) - Constructor for class reactor.bus.Event.Headers
Creates a new Headers instance by copying the contents of the given headers Map.
Headers() - Constructor for class reactor.bus.Event.Headers
Create an empty Headers

I

id - Variable in class reactor.bus.batcher.Operation
 
isCancelAfterUse() - Method in class reactor.bus.registry.CachableRegistration
 
isCancelAfterUse() - Method in interface reactor.bus.registry.Registration
Whether to cancel this Registration after use or not.
isCancelled() - Method in class reactor.bus.registry.CachableRegistration
 
isCancelled() - Method in interface reactor.bus.registry.Registration
Has this been cancelled?
isPaused() - Method in class reactor.bus.registry.CachableRegistration
 
isPaused() - Method in interface reactor.bus.registry.Registration
Whether this Registration has been paused or not.
iterator() - Method in class reactor.bus.Event.Headers
Returns an unmodifiable Iterator over a copy of this Headers' contents.
iterator() - Method in class reactor.bus.registry.CachingRegistry
 
iterator() - Method in class reactor.bus.registry.SimpleCachingRegistry
 

J

J(String, Filter...) - Static method in class reactor.bus.selector.JsonPathSelector
 
JsonPathSelector - Class in reactor.bus.selector
 
JsonPathSelector(ObjectMapper, String, Filter...) - Constructor for class reactor.bus.selector.JsonPathSelector
 
JsonPathSelector(String, Filter...) - Constructor for class reactor.bus.selector.JsonPathSelector
 
jsonPathSelector(String, Filter...) - Static method in class reactor.bus.selector.JsonPathSelector
 

M

makeAllocator(Class<T>) - Method in class reactor.bus.alloc.EventAllocator
Make a new allocator for Events with generic type of
match(String) - Method in class reactor.bus.selector.UriPathTemplate
Matches the template against the given uri returning a map of path parameters extracted from the uri, keyed by the names in the template.
matchAll() - Static method in class reactor.bus.selector.Selectors
Creates a Selector that matches all objects.
MatchAllSelector - Class in reactor.bus.selector
Implementation of Selector that matches all objects.
MatchAllSelector() - Constructor for class reactor.bus.selector.MatchAllSelector
 
matches(Object) - Method in class reactor.bus.selector.ClassSelector
 
matches(Object) - Method in class reactor.bus.selector.JsonPathSelector
 
matches(Object) - Method in class reactor.bus.selector.MatchAllSelector
 
matches(Object) - Method in class reactor.bus.selector.ObjectSelector
 
matches(Object) - Method in class reactor.bus.selector.PredicateSelector
 
matches(Object) - Method in class reactor.bus.selector.RegexSelector
 
matches(T) - Method in interface reactor.bus.selector.Selector
Indicates whether this Selector matches the key.
matches(Object) - Method in class reactor.bus.selector.SetMembershipSelector
 
matches(Object) - Method in class reactor.bus.selector.UriPathSelector
 
matches(String) - Method in class reactor.bus.selector.UriPathTemplate
Tests the given uri against this template, returning true if the uri matches the template, false otherwise.
matches(Object) - Method in class reactor.bus.selector.UriSelector
 
multiThreadedProducer() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Protect against publication of data events from multiple producer threads.

N

notify(Object, T) - Method in interface reactor.bus.Bus
Notify this component that an Event is ready to be processed.
notify(Object, Event<?>) - Method in class reactor.bus.EventBus
 
notify(Publisher<?>, Object) - Method in class reactor.bus.EventBus
Pass values accepted by this Stream into the given Bus, notifying with the given key.
notify(Publisher<? extends T>, Function<? super T, ?>) - Method in class reactor.bus.EventBus
Pass values accepted by this Stream into the given Bus, notifying with the given key.
notify(Object, Supplier<? extends Event<?>>) - Method in class reactor.bus.EventBus
Notify this component that the given Supplier can provide an event that's ready to be processed.
notify(Object) - Method in class reactor.bus.EventBus
Notify this component that the consumers registered with a Selector that matches the key should be triggered with a null input argument.
NotifyConsumer<T> - Class in reactor.bus.support
A Consumer that notifies an observable of each value that it has accepted.
NotifyConsumer(Object, Bus<?>) - Constructor for class reactor.bus.support.NotifyConsumer
Creates a new NotifyConsumer that will notify the given observable using the given notifyKey.

O

object(T) - Static method in class reactor.bus.selector.Selectors
Creates a Selector based on the given object.
ObjectSelector<T> - Class in reactor.bus.selector
Selector implementation that uses the Object.hashCode() and Object.equals(Object) methods of the internal object to determine a match.
ObjectSelector(T) - Constructor for class reactor.bus.selector.ObjectSelector
Create a new Selector instance from the given object.
objectSelector(T) - Static method in class reactor.bus.selector.ObjectSelector
Helper method to create a Selector from the given object.
on(Selector, Consumer<V>) - Method in interface reactor.bus.Bus
Register a Consumer to be triggered when a notification matches the given Selector.
on(Selector, Consumer<T>) - Method in class reactor.bus.EventBus
 
on(Selector) - Method in class reactor.bus.EventBus
Attach a Publisher to the Bus with the specified Selector.
Operation<T> - Class in reactor.bus.batcher
A Operation represents the payload that gets (re) used in the processor.
OperationBatcher<T> - Class in reactor.bus.batcher
An OperationBatcher is a highly-efficient data processor that is backed by an LMAX Disruptor RingBuffer.
OperationBatcher(Supplier<T>, Consumer<T>, Registry<Consumer<Throwable>>, WaitStrategy, boolean, int) - Constructor for class reactor.bus.batcher.OperationBatcher
 
OperationBatcherSpec<T> - Class in reactor.bus.batcher.spec
Specification class to create OperationBatchers.
OperationBatcherSpec() - Constructor for class reactor.bus.batcher.spec.OperationBatcherSpec
 
ORIGIN - Static variable in class reactor.bus.Event.Headers
The name of the origin header
override(Event<T>) - Method in class reactor.bus.Event
 

P

PassThroughFilter - Class in reactor.bus.filter
A Filter implementation that performs no filtering, returning the items as-is.
PassThroughFilter() - Constructor for class reactor.bus.filter.PassThroughFilter
 
pause() - Method in class reactor.bus.registry.CachableRegistration
 
pause() - Method in interface reactor.bus.registry.Registration
Pause this Registration.
predicate(Predicate<Object>) - Static method in class reactor.bus.selector.Selectors
Creates a Selector based on the given Predicate.
PredicateSelector - Class in reactor.bus.selector
Implementation of Selector that delegates the work of matching an object to the given Predicate.
PredicateSelector(Predicate<Object>) - Constructor for class reactor.bus.selector.PredicateSelector
 
predicateSelector(Predicate<Object>) - Static method in class reactor.bus.selector.PredicateSelector
Creates a Selector based on the given Predicate.
prepare() - Method in class reactor.bus.batcher.OperationBatcher
Prepare an Operation by allocating it from the buffer and preparing it to be submitted once Operation.commit() is invoked.
prepare(Object) - Method in class reactor.bus.EventBus
Create an optimized path for publishing notifications to the given key.

R

R(String) - Static method in class reactor.bus.selector.Selectors
A short-hand alias for Selectors.regex(String).
randomEventRouting() - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the component's EventRouter to route events to one consumer that's randomly selected from that matching consumers
RandomFilter - Class in reactor.bus.filter
A Filter implementation that returns a single, randomly selected item.
RandomFilter() - Constructor for class reactor.bus.filter.RandomFilter
 
reactor.bus - package reactor.bus
Hold the required abstraction to enable Event Driven Programming with Reactor.
reactor.bus.alloc - package reactor.bus.alloc
 
reactor.bus.batcher - package reactor.bus.batcher
A OperationBatcher is a thin wrapper around the LMAX Disruptor RingBuffer.
reactor.bus.batcher.spec - package reactor.bus.batcher.spec
Specs help create Processors by providing a fluent API to specify common options.
reactor.bus.filter - package reactor.bus.filter
Filters eliminate components from a list based on a predicate.
reactor.bus.publisher - package reactor.bus.publisher
 
reactor.bus.registry - package reactor.bus.registry
Registries provide a common way to retrieve items registered using a Selector.
reactor.bus.routing - package reactor.bus.routing
Event routing means sending a given Event to the correct Consumers.
reactor.bus.selector - package reactor.bus.selector
Selectors provide a way to register components to react to given key data.
reactor.bus.spec - package reactor.bus.spec
Specs help create Reactors by providing a fluent API to specify common options.
reactor.bus.support - package reactor.bus.support
 
reactor.bus.timer - package reactor.bus.timer
 
readOnly() - Method in class reactor.bus.Event.Headers
Get the headers as a read-only version
receive(Selector, Function<T, V>) - Method in class reactor.bus.EventBus
Assign a Function to receive an Event and produce a reply of the given type.
recycle() - Method in class reactor.bus.Event
 
regex(String) - Static method in class reactor.bus.selector.Selectors
Creates a Selector based on the given regular expression.
RegexSelector - Class in reactor.bus.selector
A Selector implementation based on the given regular expression.
RegexSelector(String) - Constructor for class reactor.bus.selector.RegexSelector
Create a Selector when the given regex pattern.
regexSelector(String) - Static method in class reactor.bus.selector.RegexSelector
Creates a Selector based on the given regular expression.
register(Selector, T) - Method in class reactor.bus.registry.CachingRegistry
 
register(Selector, T) - Method in interface reactor.bus.registry.Registry
Assign the given Selector with the given object.
register(Selector, T) - Method in class reactor.bus.registry.SimpleCachingRegistry
 
Registration<T> - Interface in reactor.bus.registry
A Registration represents an object that has been registered with a Registry.
Registries - Class in reactor.bus.registry
Created by jbrisbin on 1/27/15.
Registries() - Constructor for class reactor.bus.registry.Registries
 
Registry<T> - Interface in reactor.bus.registry
Implementations of this interface manage a registry of objects that works sort of like a Map, except Registries don't use simple keys, they use Selectors to map their objects.
resolve(Object) - Method in interface reactor.bus.selector.HeaderResolver
Resolve the headers that might be encoded in a key.
respondsToKey(Object) - Method in interface reactor.bus.Bus
Are there any Registrations with Selectors that match the given key.
respondsToKey(Object) - Method in class reactor.bus.EventBus
 
resume() - Method in class reactor.bus.registry.CachableRegistration
 
resume() - Method in interface reactor.bus.registry.Registration
Unpause this Registration, making it available for selection.
roundRobinEventRouting() - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the component's EventRouter to route events to one consumer selected from the matching consumers using a round-robin algorithm consumers
RoundRobinFilter - Class in reactor.bus.filter
A Filter implementation that returns a single item.
RoundRobinFilter() - Constructor for class reactor.bus.filter.RoundRobinFilter
 
route(Object, E, List<Registration<? extends Consumer<? extends Event<?>>>>, Consumer<E>, Consumer<Throwable>) - Method in class reactor.bus.routing.ConsumerFilteringRouter
 
route(Object, E, List<Registration<? extends Consumer<? extends Event<?>>>>, Consumer<E>, Consumer<Throwable>) - Method in interface reactor.bus.routing.Router
Routes the event, triggered by a notification with the given key to the consumers.
route(Object, E, List<Registration<? extends Consumer<? extends Event<?>>>>, Consumer<E>, Consumer<Throwable>) - Method in class reactor.bus.routing.TraceableDelegatingRouter
 
Router - Interface in reactor.bus.routing
An Router is used to route an Object to Consumers.

S

schedule(Consumer<T>, T) - Method in class reactor.bus.EventBus
Schedule an arbitrary Consumer to be executed on the current Reactor Dispatcher, passing the given .
schedule(Consumer<Long>, long, TimeUnit, long) - Method in class reactor.bus.timer.EventTimer
 
schedule(Consumer<Long>, long, TimeUnit) - Method in class reactor.bus.timer.EventTimer
 
select(Object) - Method in class reactor.bus.registry.CachingRegistry
 
select(Object) - Method in interface reactor.bus.registry.Registry
Select Registrations whose Selector Selector.matches(Object) the given key.
select(Object) - Method in class reactor.bus.registry.SimpleCachingRegistry
 
Selector<T> - Interface in reactor.bus.selector
A Selector is a wrapper around an arbitrary object.
Selectors - Class in reactor.bus.selector
Helper methods for creating Selectors.
Selectors() - Constructor for class reactor.bus.selector.Selectors
 
Selectors.AnonymousKey - Class in reactor.bus.selector
 
send(Object, Event<?>) - Method in class reactor.bus.EventBus
Notify this component of the given Event and register an internal Consumer that will take the output of a previously-registered Function and respond using the key set on the Event's replyTo property.
send(Object, Supplier<? extends Event<?>>) - Method in class reactor.bus.EventBus
Notify this component that the given Supplier will provide an Event and register an internal Consumer that will take the output of a previously-registered Function and respond using the key set on the Event's replyTo property.
send(Object, Event<?>, Bus) - Method in class reactor.bus.EventBus
Notify this component of the given Event and register an internal Consumer that will take the output of a previously-registered Function and respond to the key set on the Event's replyTo property and will call the notify method on the given Bus.
send(Object, Supplier<? extends Event<?>>, Bus) - Method in class reactor.bus.EventBus
Notify this component that the given Supplier will provide an Event and register an internal Consumer that will take the output of a previously-registered Function and respond to the key set on the Event's replyTo property and will call the notify method on the given Bus.
sendAndReceive(Object, Event<?>, Consumer<T>) - Method in class reactor.bus.EventBus
Register the given Consumer on an anonymous Selector and set the given event's replyTo property to the corresponding anonymous key, then register the consumer to receive replies from the Function assigned to handle the given key.
sendAndReceive(Object, Supplier<? extends Event<?>>, Consumer<T>) - Method in class reactor.bus.EventBus
Register the given Consumer on an anonymous Selector and set the event's replyTo property to the corresponding anonymous key, then register the consumer to receive replies from the Function assigned to handle the given key.
set(String, V) - Method in class reactor.bus.Event.Headers
Set the header value.
setAll(Map<String, Object>) - Method in class reactor.bus.Event.Headers
Sets all of the headers represented by entries in the given headers Map.
setData(T) - Method in class reactor.bus.Event
Set the internal data to wrap.
setKey(Object) - Method in class reactor.bus.Event
Set the key this event is being notified with.
setMembership(Set) - Static method in class reactor.bus.selector.Selectors
Creates a Selector that matches objects on set membership.
SetMembershipSelector - Class in reactor.bus.selector
Implementation of Selector that matches objects on set membership.
SetMembershipSelector(Set) - Constructor for class reactor.bus.selector.SetMembershipSelector
Create a Selector when the given regex pattern.
setOrigin(UUID) - Method in class reactor.bus.Event.Headers
Set the origin header.
setOrigin(String) - Method in class reactor.bus.Event.Headers
Set the origin header.
setReplyTo(Object) - Method in class reactor.bus.Event
Set the key that interested parties should send replies to.
shutdown() - Method in class reactor.bus.batcher.OperationBatcher
Shutdown this Processor by shutting down the thread pool.
SimpleCachingRegistry<T> - Class in reactor.bus.registry
A naive caching Registry implementation for use in situations that the default CachingRegistry can't be used due to its reliance on the gs-collections library.
singleThreadedProducer() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Optimize for highest throughput by assuming only a single thread will be publishing data events into this Processor.
sleepingWaitStrategy() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Set com.lmax.disruptor.SleepingWaitStrategy as wait strategy.
submit(Consumer<Long>, long, TimeUnit) - Method in class reactor.bus.timer.EventTimer
 
submit(Consumer<Long>) - Method in class reactor.bus.timer.EventTimer
 
subscribe(Subscriber<? super T>) - Method in class reactor.bus.publisher.BusPublisher
 
synchronousDispatcher() - Method in class reactor.bus.spec.DispatcherComponentSpec
Configures the component to use a synchronous dispatcher

T

T(Class<?>) - Static method in class reactor.bus.selector.Selectors
A short-hand alias for Selectors.type(Class).
test(T) - Method in class reactor.bus.selector.ObjectSelector
 
toString() - Method in class reactor.bus.Event.Headers
 
toString() - Method in class reactor.bus.Event
 
toString() - Method in class reactor.bus.publisher.BusPublisher
 
toString() - Method in class reactor.bus.registry.CachableRegistration
 
toString() - Method in class reactor.bus.selector.ObjectSelector
 
TraceableDelegatingFilter - Class in reactor.bus.filter
 
TraceableDelegatingFilter(Filter) - Constructor for class reactor.bus.filter.TraceableDelegatingFilter
 
TraceableDelegatingRouter - Class in reactor.bus.routing
 
TraceableDelegatingRouter(Router) - Constructor for class reactor.bus.routing.TraceableDelegatingRouter
 
traceEventPath() - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures this component to provide event tracing when dispatching and routing an event.
traceEventPath(boolean) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures this component to provide or not provide event tracing when dispatching and routing an event.
type(Class<?>) - Static method in class reactor.bus.selector.Selectors
Creates a Selector based on the given class type that matches objects whose type is assignable according to Class.isAssignableFrom(Class).
typeSelector(Class<?>) - Static method in class reactor.bus.selector.ClassSelector
Creates a ClassSelector based on the given class type that only matches if the key being matched is assignable according to Class.isAssignableFrom(Class).

U

U(String) - Static method in class reactor.bus.selector.Selectors
A short-hand alias for Selectors.uri(String).
uncaughtErrorHandler(Consumer<Throwable>) - Method in class reactor.bus.spec.EventRoutingComponentSpec
Configures the component's uncaught error handler for any errors that get reported into this component but aren't a direct result of dispatching (e.g.
unregister(Object) - Method in class reactor.bus.registry.CachingRegistry
 
unregister(Object) - Method in interface reactor.bus.registry.Registry
Remove any objects matching this key.
unregister(Object) - Method in class reactor.bus.registry.SimpleCachingRegistry
 
uri(String) - Static method in class reactor.bus.selector.Selectors
Creates a Selector based on a URI template.
UriPathSelector - Class in reactor.bus.selector
A Selector implementation based on a UriPathTemplate.
UriPathSelector(String) - Constructor for class reactor.bus.selector.UriPathSelector
Create a selector from the given uri template string.
uriPathSelector(String) - Static method in class reactor.bus.selector.UriPathSelector
Creates a Selector based on a URI template.
UriPathTemplate - Class in reactor.bus.selector
Represents a URI template.
UriPathTemplate(String) - Constructor for class reactor.bus.selector.UriPathTemplate
Creates a new UriPathTemplate from the given uriPattern.
UriSelector - Class in reactor.bus.selector
A Selector implementation that matches on various components of a full URI.
UriSelector(String) - Constructor for class reactor.bus.selector.UriSelector
 
UriSelector(URI) - Constructor for class reactor.bus.selector.UriSelector
 

V

valueOf(String) - Static method in enum reactor.bus.spec.EventRoutingComponentSpec.EventRoutingStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum reactor.bus.spec.EventRoutingComponentSpec.EventRoutingStrategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitStrategy(WaitStrategy) - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Set Disruptor's com.lmax.disruptor.WaitStrategy.
when(Class<? extends Throwable>, Consumer<Throwable>) - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Assign the given Consumer as an error handler for exceptions of the given type.
wrap(T) - Static method in class reactor.bus.Event
Wrap the given object with an Event.
wrap(T, Object) - Static method in class reactor.bus.Event
Wrap the given object with an Event and set the replyTo to the given replyToKey.

Y

yieldingWaitStrategy() - Method in class reactor.bus.batcher.spec.OperationBatcherSpec
Set com.lmax.disruptor.YieldingWaitStrategy as wait strategy.
$ A B C D E F G H I J M N O P R S T U V W Y 
Skip navigation links