Interface Segment

  • All Known Implementing Classes:
    RefreshableSegment

    public interface Segment
    Fetches the keys in a segment. Implementing classes are responsible for keeping the segment up-to-date with the remote server.
    Author:
    adil
    • Method Detail

      • segmentName

        String segmentName()
      • contains

        boolean contains​(String key)
        This method MUST NOT throw any exceptions.
        Returns:
        true if this segment contains the key. false otherwise.
      • forceRefresh

        void forceRefresh()
        Forces a sync of the segment with the remote server, outside of any scheduled syncs. This method MUST NOT throw any exceptions.