Interface IdentityResolver.Cache

All Known Implementing Classes:
IdentityResolver.WeakHashMapCache
Enclosing class:
IdentityResolver

@API(status=INTERNAL, since="0.1") protected static interface IdentityResolver.Cache
Interface for identity resolve methods cache.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(@NotNull Class<? extends Identity> key)
    Returns true if this instance contains an entry for the specified identity type.
    get(@NotNull Class<? extends Identity> key)
    Returns the cached identity token resolution executable for the specified identity type, if any.
    void
    put(@NotNull Class<? extends Identity> key, Executable value)
    Puts the specified identity token resolution executable for the specified identity type.
  • Method Details

    • contains

      boolean contains(@NotNull @NotNull Class<? extends Identity> key)
      Returns true if this instance contains an entry for the specified identity type.
      Parameters:
      key - The identity type
      Returns:
      If this instance contains an entry for the identity type
    • get

      Executable get(@NotNull @NotNull Class<? extends Identity> key)
      Returns the cached identity token resolution executable for the specified identity type, if any.
      Parameters:
      key - The identity type
      Returns:
      The identity token resolution executable, or null if not cached o cache expired
    • put

      void put(@NotNull @NotNull Class<? extends Identity> key, Executable value)
      Puts the specified identity token resolution executable for the specified identity type.
      Parameters:
      key - The identity type
      value - The identity token resolution executable