interface and server side impl for maxEvents