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

com.cosylab.epics.caj.cas.requests.WriteNotifyRequest Maven / Gradle / Ivy

/*
 * Copyright (c) 2004 by Cosylab
 *
 * The full license specifying the redistribution, modification, usage and other
 * rights and obligations is included with the distribution of this project in
 * the file "LICENSE-CAJ". If the license is not included visit Cosylab web site,
 * .
 *
 * THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
 * IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES
 * _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION,
 * OR REDISTRIBUTION OF THIS SOFTWARE.
 */

package com.cosylab.epics.caj.cas.requests;

import gov.aps.jca.CAStatus;

import com.cosylab.epics.caj.impl.Request;
import com.cosylab.epics.caj.impl.Transport;
import com.cosylab.epics.caj.impl.requests.AbstractCARequest;

/**
 * CA write notify response.
 * @author Matej Sekoranja
 * @version $id$
 */
public class WriteNotifyRequest extends AbstractCARequest {

	/**
	 * @param transport transport to be used when sending.
	 * @param dataType
	 * @param dataCount 
	 * @param status CAStatus
	 * @param ioid ioid
	 */
	public WriteNotifyRequest(Transport transport, short dataType, int dataCount, CAStatus status, int ioid) {
		super(transport);

		requestMessage = insertCAHeader(transport, null,
										(short)19, (short)0, 
										dataType, (short)dataCount,
										status.getStatusCode(), ioid);
	}

	/**
	 * @see com.cosylab.epics.caj.impl.Request#getPriority()
	 */
	public byte getPriority() {
		return Request.SEND_IMMEDIATELY_PRIORITY;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy