class ExpectedPartitionValueRestController extends HerdBaseController {

    @RequestMapping(
        value = EXPECTED_PARTITION_VALUES_URI_PREFIX + "/partitionKeyGroups/{partitionKeyGroupName}/expectedPartitionValues/{expectedPartitionValue}",
        method = RequestMethod.GET)
    @Secured(SecurityFunctions.FN_EXPECTED_PARTITION_VALUES_GET)
    public ExpectedPartitionValueInformation getExpectedPartitionValue(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName,
        @PathVariable("expectedPartitionValue") String expectedPartitionValue, @RequestParam(value = "offset", required = false) Integer offset)
    {
        ExpectedPartitionValueKey expectedPartitionValueKey = new ExpectedPartitionValueKey();
        expectedPartitionValueKey.setPartitionKeyGroupName(partitionKeyGroupName);
        expectedPartitionValueKey.setExpectedPartitionValue(expectedPartitionValue);
        return expectedPartitionValueService.getExpectedPartitionValue(expectedPartitionValueKey, offset);
    }

}