the information model
an object that describes the transport of the transport session. It will be an InetSocketAddress for network transports, or a Path for a file transport. May be null.
true when the group is used to read data from a
file or over TCP (creates a StreamSession),
and false for reading data over UDP (creates a
DatagramSession).
Retrieves a session from the group.
Retrieves a session from the group. If a session with the given domain is not found, creates it, adds it, and returns the new session.
an observation domain identifier
the session associated with the domain
Retrieves a session from the group as an Option.
Retrieves a session from the group as an Option.
an observation domain identifier
the session associated with the domain, or None if
there is no such session
Determines whether group is maintaining a session matching the given domain.
Determines whether group is maintaining a session matching the given domain.
an observation domain identifier
true if this group has a session for the domain
the information model
Returns an iterator over the Sessions in the SessionGroup.
Registers a new template callback.
Registers a new template callback.
A session group may have any number of callbacks registered to it. Each registered callback is added to new sessions created by this session group.
the template callback
Removes a session from the group.
Removes a session from the group.
an observation domain identifier
true if the group previously contained a
session for the domain
true when the group is used to read data from a
file or over TCP (creates a StreamSession),
and false for reading data over UDP (creates a
DatagramSession).
an object that describes the transport of the transport session.
an object that describes the transport of the transport session. It will be an InetSocketAddress for network transports, or a Path for a file transport. May be null.
A
SessionGroupmaintains a set of Sessions for a single transport session. Put more carefully, it maintains a group of sessions that can be distinguished solely by an observation domain identifier.A SessionGroup is created to create either StreamSessions or DatagramSessions. A StreamSession is used when reading data from files or over TCP; it supports template withdrawal and re-use of a template ID raises an exception. A DatagramSession is used when reading data over UDP; it does not support template withdrawal and re-use of template IDs is permitted.
transportis an object may be used to describe the transport, such as an InetSocketAddress for network transports or a Path for a file transport. It may be null. The SessionGroup does not use this parameter, and the caller may use it however it chooses.Creates a session group. Each new session in the group will be created using the given session factory.
the information model
an object that describes the transport of the transport session. It will be an InetSocketAddress for network transports, or a Path for a file transport. May be null.
truewhen the group is used to read data from a file or over TCP (creates a StreamSession), andfalsefor reading data over UDP (creates a DatagramSession).