Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/activemq/message/KeepAlive.java


1   /*
2    * KeepAlive.java
3    */
4   package org.activemq.message;
5   
6   
7   /**
8    * Keep-alive packet which holds not information and is only intended to keep connections
9    * from being idle.
10   *
11   */
12  public class KeepAlive extends AbstractPacket {
13  
14    public KeepAlive() {
15      setReceiptRequired(true);
16    }
17    
18      /**
19       * Return the type of Packet
20       *
21       * @return integer representation of the type of Packet
22       */
23  
24      public int getPacketType() {
25          return KEEP_ALIVE;
26      }
27  
28      /**
29       * @return pretty print
30       */
31      public String toString() {
32          return super.toString() + " KeepAlive{}";
33      }
34      
35      
36  }