Index

A B C E F G H I L O P R S T V W 
All Classes and Interfaces|All Packages|Serialized Form

A

accept(Context) - Method in interface org.incendo.cloud.services.type.ConsumerService
Accept the context.
ACCEPTED - Enum constant in enum org.incendo.cloud.services.State
The service consumed the context successfully and the execution should stop
apply(Context) - Method in interface org.incendo.cloud.services.type.Service
 
availableResults() - Method in class org.incendo.cloud.services.ChunkedRequestContext
Returns a view of the (currently) available results.

B

build() - Method in class org.incendo.cloud.services.ServicePipelineBuilder
Construct a new ServicePipeline using the options specified in the builder
builder() - Static method in class org.incendo.cloud.services.ServicePipeline

C

ChunkedRequestContext<Context,Result> - Class in org.incendo.cloud.services
This class represents a request that can be fulfilled by one, or multiple services, for one or more objects
ChunkedRequestContext(Collection<Context>) - Constructor for class org.incendo.cloud.services.ChunkedRequestContext
Initialize a new request
complete() - Method in class org.incendo.cloud.services.ServiceSpigot
Returns the first result that is generated for the given context.
complete(BiConsumer<Result, Throwable>) - Method in class org.incendo.cloud.services.ServiceSpigot
Returns the first result that is generated for the given context.
completeAsynchronously() - Method in class org.incendo.cloud.services.ServiceSpigot
Returns the first result that is generated for the given context.
ConsumerService<Context> - Interface in org.incendo.cloud.services.type
Service type where each implementation gets a chance to consume the context.
ConsumerService.PipeBurst - Exception Class in org.incendo.cloud.services.type
 

E

ExecutionOrder - Enum in org.incendo.cloud.services
Used to specify the relative priority of a service implementation

F

fillInStackTrace() - Method in exception class org.incendo.cloud.services.type.ConsumerService.PipeBurst
 
FIRST - Enum constant in enum org.incendo.cloud.services.ExecutionOrder
 
forward() - Method in class org.incendo.cloud.services.ServiceSpigot
Forward the request through the original pipeline.
forwardAsynchronously() - Method in class org.incendo.cloud.services.ServiceSpigot
Forward the request through the original pipeline.

G

getImplementations(TypeToken<S>) - Method in class org.incendo.cloud.services.ServicePipeline
Get a collection of all the TypeToken of all implementations for a given type.

H

handle(Chunked) - Method in interface org.incendo.cloud.services.type.PartialResultService
 
handle(Context) - Method in interface org.incendo.cloud.services.type.ConsumerService
 
handle(Context) - Method in interface org.incendo.cloud.services.type.Service
Provide a response for the given context.
handle(Context) - Method in interface org.incendo.cloud.services.type.SideEffectService
Consumes the context, if possible.
handleRequests(List<Context>) - Method in interface org.incendo.cloud.services.type.PartialResultService
Attempt to generate results for a list of requests, and return a map of all successful requests

I

initCause(Throwable) - Method in exception class org.incendo.cloud.services.type.ConsumerService.PipeBurst
 
interrupt() - Static method in interface org.incendo.cloud.services.type.ConsumerService
Immediately terminate the execution and return ACCEPTED
isCompleted() - Method in class org.incendo.cloud.services.ChunkedRequestContext
Check if the request has been completed

L

LAST - Enum constant in enum org.incendo.cloud.services.ExecutionOrder
 
LATE - Enum constant in enum org.incendo.cloud.services.ExecutionOrder
 
LATER - Enum constant in enum org.incendo.cloud.services.ExecutionOrder
 

O

order() - Method in interface org.incendo.cloud.services.type.Service
Get the execution order of the service.
Order - Annotation Type in org.incendo.cloud.services.annotation
Used to specify the relative priority of a service implementation
org.incendo.cloud.services - package org.incendo.cloud.services
IntellectualSites service pipeline system
org.incendo.cloud.services.annotation - package org.incendo.cloud.services.annotation
Service related annotations
org.incendo.cloud.services.type - package org.incendo.cloud.services.type
Service implementation types

P

PartialResultService<Context,Result,Chunked> - Interface in org.incendo.cloud.services.type
Service type that allows service to generate partial results for bigger requests
PipelineException - Exception Class in org.incendo.cloud.services
Wrapper for exceptions thrown during pipeline execution.
PipelineException(Exception) - Constructor for exception class org.incendo.cloud.services.PipelineException
Construct a new pipeline exception
PipelineException(String, Exception) - Constructor for exception class org.incendo.cloud.services.PipelineException
Construct a new pipeline exception
pump(Context) - Method in class org.incendo.cloud.services.ServicePipeline
Start traversing the pipeline by providing the context that will be used to generate the results

R

recognizedTypes() - Method in class org.incendo.cloud.services.ServicePipeline
Returns a collection of all the recognised service types.
registerMethods(T) - Method in class org.incendo.cloud.services.ServicePipeline
Scan a given class for methods annotated with ServiceImplementation and register them as service implementations.
registerServiceImplementation(TypeToken<? extends Service<Context, Result>>, Service<Context, Result>, Collection<Predicate<Context>>) - Method in class org.incendo.cloud.services.ServicePipeline
Register a service implementation for a type that is recognized by the pipeline.
registerServiceImplementation(Class<? extends Service<Context, Result>>, Service<Context, Result>, Collection<Predicate<Context>>) - Method in class org.incendo.cloud.services.ServicePipeline
Register a service implementation for a type that is recognized by the pipeline.
registerServiceType(TypeToken<? extends Service<Context, Result>>, Service<Context, Result>) - Method in class org.incendo.cloud.services.ServicePipeline
Register a service type so that it is recognized by the pipeline
REJECTED - Enum constant in enum org.incendo.cloud.services.State
The service did not consume the context and the execution should continue
remaining() - Method in class org.incendo.cloud.services.ChunkedRequestContext
Returns all remaining requests.

S

Service<Context,Result> - Interface in org.incendo.cloud.services.type
A service is anything that can take in a context, and produce a response.
ServiceImplementation - Annotation Type in org.incendo.cloud.services.annotation
Used to bind methods to services, like such:
ServicePipeline - Class in org.incendo.cloud.services
Service pipeline
ServicePipelineBuilder - Class in org.incendo.cloud.services
Builder for ServicePipeline
ServicePump<Context> - Class in org.incendo.cloud.services
Class that forwards a context to a service type that consumes said context
ServiceRepository<Context,Response> - Class in org.incendo.cloud.services
Repository that contains implementations for a given service type
ServiceSpigot<Context,Result> - Class in org.incendo.cloud.services
Class that outputs results from the given context, using the specified service type
SideEffectService<Context> - Interface in org.incendo.cloud.services.type
Service implementation that alters the state of the owning application in some way.
SOON - Enum constant in enum org.incendo.cloud.services.ExecutionOrder
 
SOONER - Enum constant in enum org.incendo.cloud.services.ExecutionOrder
 
State - Enum in org.incendo.cloud.services
This indicates how a Service responded to a given context
storeResult(Context, Result) - Method in class org.incendo.cloud.services.ChunkedRequestContext
Store a result for a specific context

T

through(TypeToken<? extends Service<Context, Result>>) - Method in class org.incendo.cloud.services.ServicePump
Specify the service type that the context will be pumped through
through(Class<? extends Service<Context, Result>>) - Method in class org.incendo.cloud.services.ServicePump
Specify the service type that the context will be pumped through

V

value() - Element in annotation type org.incendo.cloud.services.annotation.Order
The priority of the implementation
value() - Element in annotation type org.incendo.cloud.services.annotation.ServiceImplementation
The service class that the method implements
valueOf(String) - Static method in enum org.incendo.cloud.services.ExecutionOrder
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.incendo.cloud.services.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.incendo.cloud.services.ExecutionOrder
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.incendo.cloud.services.State
Returns an array containing the constants of this enum type, in the order they are declared.

W

withExecutor(Executor) - Method in class org.incendo.cloud.services.ServicePipelineBuilder
Set the executor that will be used by the pipeline when evaluating results asynchronously.
A B C E F G H I L O P R S T V W 
All Classes and Interfaces|All Packages|Serialized Form