Interface BacklogHandler<T extends Issue>
-
- All Known Subinterfaces:
CallBacklogHandler
,CallHandler
,ChatBacklogHandler
,TicketBacklogHandler
public interface BacklogHandler<T extends Issue>
This handler provides access to issues within the backlog in the novomind iAGENT routing process. It cannot be injected directly. To obtain an instance of this handler please inject one of the extending interfaces e.g.TicketBacklogHandler
,ChatBacklogHandler
orCallBacklogHandler
- Since:
- 11.25
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<T>
get(java.lang.Long id)
This method returns the optionalBacklogHandler
with the given id or an empty optional, if theBacklogHandler
with the given id does not exist within the handler's scope.java.util.function.Predicate<T>
isRoutable()
The method provides aPredicate
forBacklogHandler
that allows to filter only the routableBacklogHandler
elements.java.util.stream.Stream<T>
stream()
-
-
-
Method Detail
-
get
java.util.Optional<T> get(java.lang.Long id)
This method returns the optionalBacklogHandler
with the given id or an empty optional, if theBacklogHandler
with the given id does not exist within the handler's scope.- Parameters:
id
- the id of theBacklogHandler
to be returned- Returns:
- the optional
BacklogHandler
with the given id or an empty optional if not existing in the handler's scope. - Since:
- 11.25
-
stream
java.util.stream.Stream<T> stream()
- Returns:
- a
Stream
over theBacklogHandler
elements as its source. - Since:
- 11.25
-
isRoutable
java.util.function.Predicate<T> isRoutable()
The method provides aPredicate
forBacklogHandler
that allows to filter only the routableBacklogHandler
elements.- Returns:
- a
Predicate
forBacklogHandler
to filter routable elements only - Since:
- 11.25
-
-