Interface DistributedCache.Subscription

All Superinterfaces:
AutoCloseable
Enclosing interface:
DistributedCache<K,V>

public static interface DistributedCache.Subscription extends AutoCloseable
Handle for a subscription. 订阅的句柄。
Since:
JDK 25, opencode-base-cache V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the channel.
    void
    Unsubscribes.
    boolean
    Checks if active.
  • Method Details

    • channel

      String channel()
      Gets the channel. 获取频道。
      Returns:
      the result | 结果
    • isActive

      boolean isActive()
      Checks if active. 检查是否活跃。
      Returns:
      the result | 结果
    • close

      void close()
      Unsubscribes. 取消订阅。
      Specified by:
      close in interface AutoCloseable