Package org.jboss.ejb.client.annotation
Annotation Interface CompressionHint
A hint to the Enterprise Beans client API that the data being communicated between the Enterprise Beans client and the server via the
EJBReceiver(s) should be compressed.
This is just a hint and it's ultimately the Enterprise Beans client API implementation and/or the EJBReceiver(s) which decide whether or not the data will be compressed.- Author:
- Jaikiran Pai
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe compression level to be used while compressing the data.booleanTrue if the request data of an Enterprise Bean invocation should be compressed.booleanTrue if the response data of an Enterprise Bean invocation should be compressed.
-
Element Details
-
compressRequest
boolean compressRequestTrue if the request data of an Enterprise Bean invocation should be compressed. False otherwise. By default this istrue.- Default:
- true
-
compressResponse
boolean compressResponseTrue if the response data of an Enterprise Bean invocation should be compressed. False otherwise. By default this istrue.- Default:
- true
-
compressionLevel
int compressionLevelThe compression level to be used while compressing the data. The values can be any of those that are supported byDeflater. By default the compression level isDeflater.DEFAULT_COMPRESSION- Default:
- -1
-