Skip navigation links
A B C D E G H I L M O Q S T 

A

AbstractEventProcessor<S> - Class in com.hotels.styx.common
An event processor base class for implementing custom event processors.
AbstractEventProcessor(StateMachine<S>, BiConsumer<Throwable, S>, String) - Constructor for class com.hotels.styx.common.AbstractEventProcessor
 

B

build() - Method in class com.hotels.styx.common.StateMachine.Builder
Builds a new state-machine with on the configuration provided to this builder.
Builder() - Constructor for class com.hotels.styx.common.StateMachine.Builder
 

C

com.hotels.styx.common - package com.hotels.styx.common
 
com.hotels.styx.common.logging - package com.hotels.styx.common.logging
 
com.hotels.styx.common.testing.matcher - package com.hotels.styx.common.testing.matcher
 
currentState() - Method in class com.hotels.styx.common.StateMachine
Returns the current state.

D

describeMismatchSafely(E, Description) - Method in class com.hotels.styx.common.testing.matcher.TransformingMatcher
 
describeTo(Description) - Method in class com.hotels.styx.common.testing.matcher.TransformingMatcher
 

E

EventProcessor - Interface in com.hotels.styx.common
An event processor interface.

G

get(K) - Method in class com.hotels.styx.common.SimpleCache
 

H

handle(Object, String) - Method in class com.hotels.styx.common.StateMachine
Handles an event by performing the a state transition and side-effects associated with the event's type.
handle(Object) - Method in class com.hotels.styx.common.StateMachine
Handles an event by performing the a state transition and side-effects associated with the event's type.
hasDerivedValue(Function<E, R>, Matcher<R>) - Static method in class com.hotels.styx.common.testing.matcher.TransformingMatcher
 
HttpRequestMessageLogger - Class in com.hotels.styx.common.logging
Logs client side requests and responses when enabled.
HttpRequestMessageLogger(String, boolean) - Constructor for class com.hotels.styx.common.logging.HttpRequestMessageLogger
 

I

initialState(S) - Method in class com.hotels.styx.common.StateMachine.Builder
Sets the state that the state-machine should start in.

L

Logging - Class in com.hotels.styx.common
 
logRequest(HttpRequest, Origin) - Method in class com.hotels.styx.common.logging.HttpRequestMessageLogger
 
logResponse(HttpRequest, HttpResponse) - Method in class com.hotels.styx.common.logging.HttpRequestMessageLogger
 

M

matchesSafely(E) - Method in class com.hotels.styx.common.testing.matcher.TransformingMatcher
 

O

onInappropriateEvent(BiFunction<S, E, S>) - Method in class com.hotels.styx.common.StateMachine.Builder
Determines how to handle an inappropriate event.
onStateChange(S, S, Object) - Method in interface com.hotels.styx.common.StateChangeListener
 
onStateChange(StateChangeListener<S>) - Method in class com.hotels.styx.common.StateMachine.Builder
Add state-change-listener to be informed about state changes, including due to inappropriate events.

Q

QueueDrainingEventProcessor<S> - Class in com.hotels.styx.common
An event processor that is implemented using Queue Drain approach.
QueueDrainingEventProcessor(StateMachine<S>, BiConsumer<Throwable, S>, String) - Constructor for class com.hotels.styx.common.QueueDrainingEventProcessor
Constructs a new instance.

S

sanitise(String) - Static method in class com.hotels.styx.common.Logging
 
SimpleCache<K,V> - Class in com.hotels.styx.common
Simple cache.
SimpleCache(Function<K, V>) - Constructor for class com.hotels.styx.common.SimpleCache
 
StateChangeListener<S> - Interface in com.hotels.styx.common
Informed about state changes.
StateMachine<S> - Class in com.hotels.styx.common
A general-purpose state-machine.
StateMachine.Builder<S> - Class in com.hotels.styx.common
StateMachine builder.
submit(Object) - Method in class com.hotels.styx.common.AbstractEventProcessor
 
submit(Object) - Method in interface com.hotels.styx.common.EventProcessor
 

T

toString() - Method in class com.hotels.styx.common.SimpleCache
 
TransformingMatcher<E,R> - Class in com.hotels.styx.common.testing.matcher
A matcher that transforms a value and then applies another matcher to it when used.
TransformingMatcher(Function<E, R>, Matcher<R>) - Constructor for class com.hotels.styx.common.testing.matcher.TransformingMatcher
 
transition(S, Class<E>, Function<E, S>) - Method in class com.hotels.styx.common.StateMachine.Builder
Associates a state and event type with a function that returns a new state and possibly side-effects.
A B C D E G H I L M O Q S T 
Skip navigation links

Copyright © 2013–2018 Hotels.com. All rights reserved.