Interface IDefaultPartitionSettings


public interface IDefaultPartitionSettings
  • Method Details

    • getDefaultPartitionId

      @Nullable default Integer getDefaultPartitionId()
      This method returns the default partition ID. Implementers of this interface should overwrite this method to provide a default partition ID that is different than the default value of null.
      Returns:
      the default partition ID
    • isDefaultPartition

      default boolean isDefaultPartition(@Nonnull RequestPartitionId theRequestPartitionId)
      Test whether theRequestPartitionId is only targeting the default partition where the ID of the default partition is provided by getDefaultPartitionId().
      Parameters:
      theRequestPartitionId - to perform the evaluation upon.
      Returns:
      true if the theRequestPartitionId is for the default partition only.
    • hasDefaultPartitionId

      default boolean hasDefaultPartitionId(@Nonnull RequestPartitionId theRequestPartitionId)
      Test whether theRequestPartitionId has one of its targeted partitions matching the default partition where the ID of the default partition is provided by getDefaultPartitionId().
      Parameters:
      theRequestPartitionId - to perform the evaluation upon.
      Returns:
      true if the theRequestPartitionId is targeting the default partition.
    • getDefaultRequestPartitionId

      Returns a RequestPartitionId instance for the default partition. This is a convenience method that creates a RequestPartitionId using the default partition ID from getDefaultPartitionId().
      Returns:
      a RequestPartitionId for the default partition