Example Java implementations of producers