Connection.sessionHead

Returns the head of the list of sessions in the specified states.

Typically used to discover sessions whose remote state has acquired particular values, e.g. sessions that have been remotely opened or closed.

TODO what ordering guarantees on the returned "linked list" are provided?

@see Session#next(EnumSet, EnumSet)

interface Connection
sessionHead

Meta