Package zendesk.support.suas
Class Suas.Builder
- java.lang.Object
-
- zendesk.support.suas.Suas.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Store
build()
Creates an instanceStore
with the provided options.Suas.Builder
withDefaultFilter(Filter<java.lang.Object> filter)
Suas.Builder
withExecutor(java.util.concurrent.Executor executor)
Configure theStore
with a non emptyExecutor
Suas.Builder
withInitialState(State state)
Suas.Builder
withMiddleware(java.util.Collection<Middleware> middleware)
Configure theStore
with one or manyMiddleware
Suas.Builder
withMiddleware(Middleware... middleware)
Configure theStore
with one or manyMiddleware
-
-
-
Method Detail
-
withInitialState
public Suas.Builder withInitialState(State state)
- Parameters:
state
- an initial state- Returns:
- a instance of
Suas.Builder
for further configuration
-
withMiddleware
public Suas.Builder withMiddleware(java.util.Collection<Middleware> middleware)
Configure theStore
with one or manyMiddleware
- Parameters:
middleware
- a list ofMiddleware
- Returns:
- a instance of
Suas.Builder
for further configuration
-
withMiddleware
public Suas.Builder withMiddleware(Middleware... middleware)
Configure theStore
with one or manyMiddleware
- Parameters:
middleware
- a list ofMiddleware
- Returns:
- a instance of
Suas.Builder
for further configuration
-
withDefaultFilter
public Suas.Builder withDefaultFilter(Filter<java.lang.Object> filter)
- Parameters:
filter
- a custom default filter- Returns:
- a instance of
Suas.Builder
for further configuration
-
withExecutor
public Suas.Builder withExecutor(java.util.concurrent.Executor executor)
Configure theStore
with a non emptyExecutor
- Parameters:
executor
- an implemented executor- Returns:
- a instance of
Suas.Builder
for further configuration
-
-