Max 40 events retrieved in custom java adapter

I am calling BrokerClient.getEvents(500, 30000) but the maximum number of events it retrieves is 40. Is there a way to increase the maximum number retrieved to 500?

Thanks.