to top
Datalogic APIs
public final enum

RfidSessionPolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.configuration.RfidSessionPolicy

Class Overview

Enum RfidSessionPolicy defines the session policy used during RFID inventory and reading operations.

In EPC Gen2, sessions control how long a tag remains in the inventoried (or non-inventoried) state after responding to a reader.

Different session values affect tag persistence, inventory speed, and the likelihood of re-reading the same tag.

These are the allowed values for the property RFID_SESSION_POLICY

Summary

Enum Values
RfidSessionPolicy  AUTO_1  Automatic session selection (mode 1). 
RfidSessionPolicy  AUTO_2  Automatic session selection (mode 2). 
RfidSessionPolicy  S0  Session 0. 
RfidSessionPolicy  S1  Session 1. 
RfidSessionPolicy  S2  Session 2. 
RfidSessionPolicy  S3  Session 3. 
Public Methods
static RfidSessionPolicy fromInt(int n)
Retrieves the corresponding DesktopModePolicy value, from a valid integer.
int toInt()
Converts a RfidSessionPolicy to its corresponding integer value.
static RfidSessionPolicy valueOf(String name)
final static RfidSessionPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final RfidSessionPolicy AUTO_1

Added in revision 50

Automatic session selection (mode 1).

The reader dynamically selects the session value based on internal heuristics and operating conditions.

public static final RfidSessionPolicy AUTO_2

Added in revision 50

Automatic session selection (mode 2).

The reader dynamically manages session behavior using an alternative optimization strategy.

public static final RfidSessionPolicy S0

Added in revision 50

Session 0.

Tags reset their inventoried state very quickly.

Suitable for fast inventory of moving tags, but may result in frequent duplicate reads.

public static final RfidSessionPolicy S1

Added in revision 50

Session 1.

Tags maintain their inventoried state for a short time.

Provides a balance between read speed and duplicate suppression.

public static final RfidSessionPolicy S2

Added in revision 50

Session 2.

Tags remain inventoried for a longer duration.

Suitable for dense tag populations where duplicate reads should be minimized.

public static final RfidSessionPolicy S3

Added in revision 50

Session 3.

Tags remain inventoried for the longest duration.

Useful for inventory stability and strong duplicate suppression in static environments.

Public Methods

public static RfidSessionPolicy fromInt (int n)

Added in revision 50

Retrieves the corresponding DesktopModePolicy value, from a valid integer.

Parameters
n int
Returns
  • RfidSessionPolicy the corresponding one.

public int toInt ()

Added in revision 50

Converts a RfidSessionPolicy to its corresponding integer value.

Returns
  • int

public static RfidSessionPolicy valueOf (String name)

Added in revision 50

public static final RfidSessionPolicy[] values ()

Added in revision 50