com.sap.engine.interfaces.messaging.api

Class DeliverySemantics

java.lang.Object
  extended by com.sap.engine.interfaces.messaging.api.DeliverySemantics
All Implemented Interfaces:
Serializable

public class DeliverySemantics
extends Object
implements Serializable

The DeliverySemantics class is a type-safe enumeration of delivery semantics of a message exchange and as such defines the quality of service.
Currently, the DeliverySemantics values defined by this class are:

Code sample:

DeliverySemantics ds = DeliverySemantics.ExactlyOnce;

See Also:
Serialized Form

Field Summary
static DeliverySemantics BestEffort
          Message delivery is not guaranteed.
static DeliverySemantics ExactlyOnce
          Message is guaranteed to be delivered exactly once.
static DeliverySemantics ExactlyOnceInOrder
          Message is guaranteed to be delivered exactly once and the sequence of the message delivery is maintained.
 
Method Summary
static DeliverySemantics[] getAllDeliverySemantics()
          Returns an array of all known DeliverySemantics constants.
protected  Object readResolve()
           
 String toString()
          Returns the string representation of the DeliverySemantics.
static DeliverySemantics valueOf(String s)
          Returns an instance of DeliverySemantics that represents the delivery semantics of a message given as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BestEffort

public static final DeliverySemantics BestEffort
Message delivery is not guaranteed.


ExactlyOnce

public static final DeliverySemantics ExactlyOnce
Message is guaranteed to be delivered exactly once.


ExactlyOnceInOrder

public static final DeliverySemantics ExactlyOnceInOrder
Message is guaranteed to be delivered exactly once and the sequence of the message delivery is maintained.

Method Detail

toString

public String toString()
Returns the string representation of the DeliverySemantics. This value can be used to get a DeliverySemantics instance by a call to valueOf(String).

Overrides:
toString in class Object
Returns:
the string representation of the message type.

valueOf

public static DeliverySemantics valueOf(String s)
Returns an instance of DeliverySemantics that represents the delivery semantics of a message given as a string.

Throws:
NullPointerException - if the argument is null.
IllegalArgumentException - if the argument is not a known delivery semantics value.

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Throws:
ObjectStreamException

getAllDeliverySemantics

public static DeliverySemantics[] getAllDeliverySemantics()
Returns an array of all known DeliverySemantics constants.

Returns:
An array containing all known DeliverySemantics constants.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.af.ifc.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice