xmlBlaster 2.2.0 API

org.xmlBlaster.engine.qos
Class UpdateQosServer

java.lang.Object
  extended by org.xmlBlaster.engine.qos.UpdateQosServer

public final class UpdateQosServer
extends java.lang.Object

Handling of update() quality of services in the server core.

This decorator hides the real qos data object and gives us a server specific view on it.

Author:
xmlBlaster@marcelruff.info
See Also:
MsgQosData, MsgQosSaxFactory

Field Summary
private  MsgQosData msgQosData
           
 
Constructor Summary
UpdateQosServer(Global glob, MsgQosData msgQosData)
          A constructor for PtP messages.
UpdateQosServer(Global glob, MsgQosData msgQosData, java.lang.String state)
          A constructor for PtP messages.
UpdateQosServer(Global glob, MsgQosData msgQosData, java.lang.String state, java.lang.String subscriptionId)
          A constructor for Pub/Sub message (with a subscriptionId).
 
Method Summary
 MsgQosData getMsgQosData()
           
 PriorityEnum getPriority()
           
 java.lang.String getState()
           
 java.lang.String getSubscriptionId()
           
 void incrRedeliver()
           
static void incrRedeliver(MsgQosData msgQosData)
           
static void setData(MsgQosData msgQosData, java.lang.String state, java.lang.String subscriptionId)
          Static manipulator if you want to avoid constructing one instance of UpdateQosServer
 java.lang.String toXml(long index, long size)
          Creates the returned callback QoS of the update() method.
static java.lang.String toXml(MsgQosData msgQosData, long index, long size)
          Static manipulator if you want to avoid constructing one instance of UpdateQosServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgQosData

private final MsgQosData msgQosData
Constructor Detail

UpdateQosServer

public UpdateQosServer(Global glob,
                       MsgQosData msgQosData,
                       java.lang.String state,
                       java.lang.String subscriptionId)
A constructor for Pub/Sub message (with a subscriptionId).

Parameters:
e.g. - Constants.STATE_OK

UpdateQosServer

public UpdateQosServer(Global glob,
                       MsgQosData msgQosData,
                       java.lang.String state)
A constructor for PtP messages.

Parameters:
e.g. - Constants.STATE_OK

UpdateQosServer

public UpdateQosServer(Global glob,
                       MsgQosData msgQosData)
A constructor for PtP messages.

Method Detail

setData

public static void setData(MsgQosData msgQosData,
                           java.lang.String state,
                           java.lang.String subscriptionId)
Static manipulator if you want to avoid constructing one instance of UpdateQosServer


getMsgQosData

public MsgQosData getMsgQosData()

getSubscriptionId

public java.lang.String getSubscriptionId()

getState

public java.lang.String getState()

getPriority

public PriorityEnum getPriority()

incrRedeliver

public void incrRedeliver()

incrRedeliver

public static void incrRedeliver(MsgQosData msgQosData)

toXml

public java.lang.String toXml(long index,
                              long size)
Creates the returned callback QoS of the update() method.

The XML syntax is described in the class description.

Parameters:
index - Index of entry in queue
max - Number of entries in queue

toXml

public static java.lang.String toXml(MsgQosData msgQosData,
                                     long index,
                                     long size)
Static manipulator if you want to avoid constructing one instance of UpdateQosServer


xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.