com.sap.engine.interfaces.messaging.api

Class AckType

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

public class AckType
extends Object
implements Serializable

The AckType is used to represent the various Acknowledgement Types that are currently supported by the Messaging System:

  • SYSTEM>:
  • SYSTEM_ERROR :
  • APPLICATION :
  • APPLICATION_ERROR :
  • Version:
    $Id: //tc/xpi.ms/NW711_02_COR/src/_interface/pifce/api/com/sap/engine/interfaces/messaging/api/AckType.java#1 $
    See Also:
    Serialized Form

    Field Summary
    static AckType APPLICATION
               
    static AckType APPLICATION_ERROR
               
    static AckType SYSTEM
               
    static AckType SYSTEM_ERROR
               
     
    Method Summary
    static AckType[] getAckTypes()
              Returns an array of all known AckType constants.
    protected  Object readResolve()
              Prevents the release of multiple instances upon deserialization.
     String toString()
              Returns the string representation of the ack type.
    static AckType valueOf(String s)
              Returns an instance of AckType that represents the ack type given as a string.
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Field Detail

    SYSTEM

    public static final AckType SYSTEM

    SYSTEM_ERROR

    public static final AckType SYSTEM_ERROR

    APPLICATION

    public static final AckType APPLICATION

    APPLICATION_ERROR

    public static final AckType APPLICATION_ERROR
    Method Detail

    toString

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

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

    valueOf

    public static AckType valueOf(String s)
    Returns an instance of AckType that represents the ack type given as a string. This will typically be used to create a AckType object from a string retrieved from the database.

    Throws:
    NullPointerException - if the argument is null.
    IllegalArgumentException - if the argument is not a known ack type.

    readResolve

    protected Object readResolve()
                          throws ObjectStreamException
    Prevents the release of multiple instances upon deserialization.

    Returns:
    Throws:
    ObjectStreamException

    getAckTypes

    public static AckType[] getAckTypes()
    Returns an array of all known AckType constants.

    Returns:
    An array containing all known AckType constants.


    Copyright 2009 SAP AG Complete Copyright Notice