All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.ejb.client.annotation.CompressionHint Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 35.0.0.Beta1
Show newest version
package org.jboss.ejb.client.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.zip.Deflater;

/**
 * A hint to the EJB client API that the data being communicated between the EJB client and the server via the {@link org.jboss.ejb.client.EJBReceiver 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. * * @author: Jaikiran Pai */ @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface CompressionHint { /** * True if the request data of an EJB invocation should be compressed. False otherwise. By default this is true. */ boolean compressRequest() default true; /** * True if the response data of an EJB invocation should be compressed. False otherwise. By default this is true. */ boolean compressResponse() default true; /** * The compression level to be used while compressing the data. The values can be any of those that are supported by {@link Deflater}. By default the compression level is {@link Deflater#DEFAULT_COMPRESSION} */ int compressionLevel() default Deflater.DEFAULT_COMPRESSION; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy