@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) public @interface CompressionHint
EJBReceiver(s)
should be compressed.
This is just a hint and it's ultimately the EJB client API implementation and/or the EJBReceiver(s) which decide whether or not the data will be compressed.Modifier and Type | Optional Element and Description |
---|---|
int |
compressionLevel
The compression level to be used while compressing the data.
|
boolean |
compressRequest
True if the request data of an EJB invocation should be compressed.
|
boolean |
compressResponse
True if the response data of an EJB invocation should be compressed.
|
public abstract boolean compressRequest
true
.public abstract boolean compressResponse
true
.public abstract int compressionLevel
Deflater
. By default the compression level is Deflater.DEFAULT_COMPRESSION
Copyright © 2017 JBoss by Red Hat. All rights reserved.