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

org.jgroups.Header Maven / Gradle / Ivy

There is a newer version: 5.3.13.Final
Show newest version

package org.jgroups;

import org.jgroups.util.SizeStreamable;

/**
 * Header is a JGroups internal base class for all JGroups headers. Client normally do not need to
 * interact with headers unless they are developing their custom protocols.
 * 
 * @author Bela Ban
 * @since 2.0
 */
public abstract class Header implements SizeStreamable, Constructable
{ /** The ID of the protocol which added a header to a message. Set externally, e.g. by {@link BaseMessage#putHeader(short,Header)} */ protected short prot_id; public short getProtId() {return prot_id;} public Header setProtId(short id) {this.prot_id=id; return this;} /** Returns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same */ public abstract short getMagicId(); public String toString() { return '[' + getClass().getSimpleName() + "]"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy