Interface HvlSessionDataRedisSupportService<SD extends HvlSessionDataRedisDocument>

Type Parameters:
SD - the type parameter
All Superinterfaces:
tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<SD>
All Known Implementing Classes:
HvlSessionDataRedisSystemSupportServiceImpl, HvlSessionDataRedisUserSupportServiceImpl

@Validated public interface HvlSessionDataRedisSupportService<SD extends HvlSessionDataRedisDocument> extends tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService<SD>
A service in which includes custom methods used to retrieve redis data.
  • Method Summary

    Modifier and Type
    Method
    Description
    countByUser(SD sessionDocument)
    Count by user long.
    exist(@NotBlank String identifier)
    Exist session.
    getWithRenewTtl(@NotBlank String identifier)
    Gets with renew ttl.
    tr.com.havelsan.javarch.data.commons.pageable.HvlPage<SD>
    queryPage(SD sessionDocument, @NotNull tr.com.havelsan.javarch.data.commons.pageable.HvlPageable pageable)
    Returns a page of session matching the query criteria.
    renewTtl(@NotBlank String identifier)
    Renew ttl.

    Methods inherited from interface tr.com.havelsan.javarch.session.data.support.HvlSessionSupportService

    begin, close, closeAll, closeAll, closeAll, findAll, findOne
  • Method Details

    • exist

      Boolean exist(@NotBlank @NotBlank String identifier)
      Exist session.
      Parameters:
      identifier - the identifier
      Returns:
      the boolean
    • renewTtl

      HvlSessionDataRedisUserDocument renewTtl(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Renew ttl.
      Parameters:
      identifier - the identifier
      Returns:
      the hvl session data redis user document
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the hvl session support exception
    • getWithRenewTtl

      HvlSessionDataRedisUserDocument getWithRenewTtl(@NotBlank @NotBlank String identifier) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Gets with renew ttl.
      Parameters:
      identifier - the identifier
      Returns:
      the with renew ttl
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the hvl session support exception
    • queryPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<SD> queryPage(@NotNull SD sessionDocument, @NotNull @NotNull tr.com.havelsan.javarch.data.commons.pageable.HvlPageable pageable) throws tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException
      Returns a page of session matching the query criteria.
      Parameters:
      sessionDocument - the session document
      pageable - the pageable
      Returns:
      the hvl page
      Throws:
      tr.com.havelsan.javarch.session.data.support.exception.HvlSessionSupportException - the hvl session support exception
    • countByUser

      Long countByUser(@NotNull SD sessionDocument)
      Count by user long.
      Parameters:
      sessionDocument - the session document
      Returns:
      the long