[Java] Tidy up TransportPoller collaborations.