Interface BacklogHandler<T extends Issue>
-
- All Known Subinterfaces:
CallBacklogHandler
,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
- 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 backlog.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()
Returns a sequentialStream
over the backlog ofBacklogHandler
elements as its source.
-
-
-
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 backlog.- 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 backlog - Since:
- 11.25
-
stream
java.util.stream.Stream<T> stream()
Returns a sequentialStream
over the backlog ofBacklogHandler
elements as its source. Please note that the underlying stream source guarantees order by routing priority. In case of service level based routing the stream is ordered by the individually calculated service level ratio of eachBacklogHandler
descending from high to low. Please also note that the stream source may containBacklogHandler
elements that are not routable. To filter the routableBacklogHandler
elements please use theisRoutable()
predicate to filter the stream.- Returns:
- a sequential
Stream
over theBacklogHandler
elements in the backlog - 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
-
-