com.anaptecs.jeaf.workload.proxy.ProxyMessages Maven / Gradle / Ivy
The newest version!
package com.anaptecs.jeaf.workload.proxy;
import com.anaptecs.jeaf.xfun.annotations.MessageResource;
import com.anaptecs.jeaf.xfun.api.XFun;
import com.anaptecs.jeaf.xfun.api.errorhandling.ErrorCode;
import com.anaptecs.jeaf.xfun.api.messages.MessageRepository;
/**
* Class contains all generated message constants for JEAF Workload Proxy.
*
* @author JEAF Development Team
* @version 1.0
*/
@MessageResource(path = "WorkloadProxyMessages.xml")
public final class ProxyMessages {
/**
* Constant for XML file that contains all messages that are defined within this class.
*/
private static final String MESSAGE_RESOURCE = "WorkloadProxyMessages.xml";
/**
* Error-Code is used in case that a byte buffer could not be taken from byte buffer pool.
*/
public static final ErrorCode BYTE_BUFFER_POOL_OVERLOADED;
/**
* Error-Code is used in case that an exception is thrown when trying to claim an object from byte buffer pool.
*/
public static final ErrorCode BYTE_BUFFER_POOL_EXCEPTION;
/**
* Static initializer contains initialization for all generated constants.
*/
static {
MessageRepository lRepository = XFun.getMessageRepository();
lRepository.loadResource(MESSAGE_RESOURCE);
// Handle all info messages.
// Handle all messages for errors.
BYTE_BUFFER_POOL_OVERLOADED = lRepository.getErrorCode(8100);
BYTE_BUFFER_POOL_EXCEPTION = lRepository.getErrorCode(8101);
// Handle all localized strings.
}
/**
* Constructor is private to ensure that no instances of this class will be created.
*/
private ProxyMessages( ) {
// Nothing to do.
}
}