The session group that owns the session.
The observation domain ID.
[[Session.TemplateInterferenceException]] when different
templates use the same template id.
Adds a Template to this Session using tid as the templateId and
replacing the Template that previously used that ID, if any.
Adds a Template to this Session using tid as the templateId and
replacing the Template that previously used that ID, if any. To add
template only if it is not already present, use getOrAdd.
If template.size is 0, withdraws and returns the Template whose ID is
tid. The Template if not withdrawn if this is a DatagramSession.
The ID for the template.
The template being replaced, or None
Session.TemplateInterferenceException when a template is
replaced that may not be replaced, by policy
java.lang.RuntimeException when the template's session
is not this.
Updates the metadata for a particular template in this Session.
Updates the metadata for a particular template in this Session. Ignores
metadata if its template ID is invalid.
Gets the ID used by template within this Session.
Gets the ID used by template within this Session.
1.3.1
NoTemplateException if the Session does not know about that
Template.
getId
Gets a Template from the template library based on the template ID.
Gets a Template from the template library based on the template ID.
1.3.1
NoTemplateException if the Session does not have a Template
with that ID.
getTemplate
The sequence number that is expected for the next message in this session.
The sequence number that is expected for the next message in this session.
It is value a value between 0 and 2^32-1, or -1 if no message has yet been observed in this session.
Find a template ID not currently being used by this session.
Find a template ID not currently being used by this session. Returns None when the Session has no available IDs. (Not necessarily deterministic.)
a currently unused template ID
Gets the ID for the Template within this session as an Option.
Gets the ID for the Template within this session as an Option.
Returns the ID for template in this Session, adding template to this
Session if it does not exist.
Returns the ID for template in this Session, adding template to this
Session if it does not exist.
If template must be added to the Session, an arbitrary ID is used when
tid is None. If tid is not None, that ID is used if possible;
otherwise an arbitrary ID is used. Use the add method if template
must use a particular ID.
Takes no action and returns 0 if template.size is 0.
The Template to get or add
An optional ID for template if it does not exist in
the Session
The ID of template in this Session
Returns a read-only copy of this session that will not change.
Returns a read-only copy of this session that will not change.
the persistent session
Gets a Template from the template library based on the template ID as an Option.
Gets a Template from the template library based on the template ID as an Option.
the template ID
The template associated with the template ID, or None
Gets the metadata for the Template whose ID is tid as an
Option.
Maps a templateId to a Template.
Maps a templateId to a Template. "protected" since ReadOnlySession needs access
The information model used by the session.
The information model used by the session.
Returns an Iterator over the Templates in the Session.
Returns an Iterator over the Templates in the Session.
Check for missing or out of sequence records.
Check for missing or out of sequence records. If found, invoke any SequenceCallback objects that have been registered and log a message. A log message is not written if no SequenceCallback objects have been registered.
The observation domain for the session, an unsigned 32-bit value.
The observation domain for the session, an unsigned 32-bit value. Transport sessions that have a single observation domain typically have an observation domain ID of zero.
Registers a new sequence callback with this session.
Registers a new sequence callback with this session. A session can have any number of callbacks registered to it. Each registered callback will be called whenever a message arrives with an unexpected sequence number.
the sequence number callback
Registers multiple templates callbacks with this session.
Registers multiple templates callbacks with this session.
Registers a new template callback with this session.
Registers a new template callback with this session. A session can have any number of callbacks registered to it. Each registered callback will be called whenever a template is added or removed from the session template library.
the template callback
Removes a template from this session.
Removes a template from this session.
The template to remove
the template that was removed, or None if none
Removes a template from this session.
Removes a template from this session.
the template ID of the template to remove
the template that was removed, or None if none
Maps a templateId to its metadata
Maps a templateId to its metadata
Maps a Template to its templateId in this Session.
Maps a Template to its templateId in this Session.
The source information for this session.
The source information for this session. If the
source is a file, transport is a String containing the file
name. If the source is a network connection, transport is an
InetSocketAddress representing the remote side of this session's
connection.
Internal function that removes a template when a withdrawal template is received on the input stream.
Internal function that removes a template when a withdrawal template is received on the input stream. That is, when add() is called with a withdrawal template.
There are two types of Sessions: StreamSession and DatagramSession.
A StreamSession implements Template instantiation and Template withdrawal handling as dictated by sections 8 and 8.1 of RFC 7011. In particular, Session.TemplateInterferenceException is thrown when different templates use the same template id.
A StreamSession is created by a SessionGroup with the
streamSemanticsparameter set totrue.[[Session.TemplateInterferenceException]]when different templates use the same template id.