- claimToken
Tries to claim the given token entry. If the claim fails an
UnableToClaimTokenException should be th
- getConnection
Returns a Connection to the database.
- initializeTokenSegments
- insertTokenEntry
Inserts a new token entry via the given updatable resultSet.
- loadOrInsertToken
Tries loading an existing token owned by a processor with given processorName
and segment. If such a
- readSerializedData
Returns the serialized token data from the given resultSet at given columnName.
- readTokenEntry
Convert given resultSet to an AbstractTokenEntry. The result set contains a
single token entry.
- releaseClaim
Creates a new PreparedStatement to release the current claim this node has on a
token belonging to a
- selectForSegments
Returns a PreparedStatement to select all segments ids for a given processorName
from the underlying
- selectForUpdate
Returns a PreparedStatement to select a token entry from the underlying storage.
The ResultSetthat i
- <init>
Instantiate a JdbcTokenStore based on the fields contained in the Builder. Will
assert that the Conn
- builder
Instantiate a Builder to be able to create a JdbcTokenStore. The schema is
defaulted to an TokenSche