A B C E G I N O P Q R S T U V 
All Classes All Packages

A

AggregateNotFound - io.simplesource.api.CommandError.Reason
 
Aggregator<E,​A> - Interface in io.simplesource.api
An Aggregator is a function that builds up an aggregate from a stream of events (effectively a fold function).
AggregatorBuilder<E,​A> - Class in io.simplesource.dsl
A builder for creating an Aggregator that can handle multiple event types by adding one or more single event aggregators.
applyEvent(A, E) - Method in interface io.simplesource.api.Aggregator
A function that takes the current aggregate value, the latest event and generates a new aggregate value.

B

build() - Method in class io.simplesource.dsl.AggregatorBuilder
 
build() - Method in class io.simplesource.dsl.CommandHandlerBuilder
 

C

CommandAPI<K,​C> - Interface in io.simplesource.api
The public API for submitting commands against a given aggregate and querying where they have been successfully applied.
CommandAPI.Request<K,​C> - Class in io.simplesource.api
 
CommandError - Class in io.simplesource.api
A CommandError explains failures.
CommandError.Reason - Enum in io.simplesource.api
 
CommandHandler<K,​C,​E,​A> - Interface in io.simplesource.api
A command handler is responsible for accepting or rejecting commands and turning accepted commands into a list of events by applying the appropriate business logic and validations based on the current state.
CommandHandlerBuilder<K,​C,​E,​A> - Class in io.simplesource.dsl
An builder for creating an CommandHandler that can handle several different commands types by adding one or more single command handlers.
CommandHandlerFailed - io.simplesource.api.CommandError.Reason
 
CommandId - Class in io.simplesource.api
 
CommandId() - Constructor for class io.simplesource.api.CommandId
 
CommandPublishError - io.simplesource.api.CommandError.Reason
 

E

empty(K) - Method in interface io.simplesource.api.InitialValue
 

G

getMessage() - Method in class io.simplesource.api.CommandError
The error message accessor
getReason() - Method in class io.simplesource.api.CommandError
The reason value accessor.

I

id - Variable in class io.simplesource.api.CommandId
 
InitialValue<K,​A> - Interface in io.simplesource.api
Provides the initial value of an aggregate.
InternalError - io.simplesource.api.CommandError.Reason
 
interpretCommand(K, A, C) - Method in interface io.simplesource.api.CommandHandler
Determine whether you will accept the given command given the current aggregate and, if so, transform it into events.
InvalidCommand - io.simplesource.api.CommandError.Reason
 
InvalidReadSequence - io.simplesource.api.CommandError.Reason
 
InvalidSequenceHandler<K,​C,​A> - Interface in io.simplesource.api
This functional for accepting or rejecting commands executed against an out of date view.
io.simplesource.api - package io.simplesource.api
 
io.simplesource.dsl - package io.simplesource.dsl
 

N

newBuilder() - Static method in class io.simplesource.dsl.AggregatorBuilder
 
newBuilder() - Static method in class io.simplesource.dsl.CommandHandlerBuilder
 

O

of(CommandError.Reason, String) - Static method in class io.simplesource.api.CommandError
Construct a CommandError from a Throwable.
of(CommandError.Reason, Throwable) - Static method in class io.simplesource.api.CommandError
Construct a CommandError from a Throwable.
onCommand(Class<SC>, CommandHandler<K, SC, E, A>) - Method in class io.simplesource.dsl.CommandHandlerBuilder
 
onEvent(Class<SE>, Aggregator<SE, A>) - Method in class io.simplesource.dsl.AggregatorBuilder
 

P

publishAndQueryCommand(CommandAPI.Request<K, C>, Duration) - Method in interface io.simplesource.api.CommandAPI
Chain together publishing a command then query the result.
publishCommand(CommandAPI.Request<K, C>) - Method in interface io.simplesource.api.CommandAPI
Submit the given command ready for processing.

Q

queryCommandResult(CommandId, Duration) - Method in interface io.simplesource.api.CommandAPI
Get the result of the execution of the command identified by the provided UUID.

R

random() - Static method in class io.simplesource.api.CommandId
 
RemoteLookupFailed - io.simplesource.api.CommandError.Reason
 
Request() - Constructor for class io.simplesource.api.CommandAPI.Request
 

S

shouldReject(K, Sequence, Sequence, A, C) - Method in interface io.simplesource.api.InvalidSequenceHandler
The sequence handler is responsible for accepting or rejecting commands executed against an out of date view If expectedSeq == currentSeq this handler will not be invoked If this handler is invoked, it means the is executing a command against an old version of the aggregate

T

Timeout - io.simplesource.api.CommandError.Reason
 

U

UnexpectedErrorCode - io.simplesource.api.CommandError.Reason
 

V

valueOf(String) - Static method in enum io.simplesource.api.CommandError.Reason
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.simplesource.api.CommandError.Reason
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E G I N O P Q R S T U V 
All Classes All Packages