Scala side of PartitionContext et al.