KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > common > datagram > IControlDatagram


1 package com.ubermq.jms.common.datagram;
2
3 import com.ubermq.jms.common.datagram.control.ICommandSubGram;
4 import com.ubermq.kernel.IDatagram;
5
6 /**
7  * A datagram for controlling aspects of the current connection. Each control
8  * datagram contains a specific command, which is indicated by a control code
9  * and an implementation of <code>ICommandSubGram</code>.
10  * @see com.ubermq.jms.server.datagram.control.ICommandSubGram
11  */

12 public interface IControlDatagram extends IDatagram
13 {
14     /**
15      * Gets the control code.
16      * @return a control code that is application specific.
17      */

18     public int getControlCode();
19     
20     /**
21      * Gets the command that this control datagram represents.
22      * @see com.ubermq.jms.common.datagram.control.ICommandSubGram
23      */

24     public ICommandSubGram getCommandSubGram();
25 }
26
Popular Tags