Some related issues:
1. Session has one limit for text and binary messages whereas WebSocketContainer has separate limits. Need to be consistent.
2. The method names should be consistent between Session and WebSocketContainer (unless of course they are meant to be completely different concepts in which case much more explantion in the Javadoc is required).
3. Make clear if the limits are for incoming, outgoing or both. The assumption from the EG list is incoming only.
4. Why allow limits greater than Integer.MAX_VALUE when that is the largest message / partial message Java is able to deliver?