oracle.panama.messaging.transport
Class Status
java.lang.Object
|
+--oracle.panama.messaging.transport.Status
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- public class Status
- extends java.lang.Object
- implements java.io.Externalizable
A status is some information about a message sent.
It is reported to the transport system by a service
center. This information could be a delivery notification,
a failure notification, a state update, or something
else.
- See Also:
- Serialized Form
Type | Method |
java.lang.String |
getContent()
Get the status content. |
long |
getTimeStamp()
Get the time stamp. |
int |
getType()
Get the status type. |
void |
readExternal(java.io.ObjectInput oi)
Read a status object from a stream. |
void |
setContent(java.lang.String content)
Set the status content. |
void |
setTimeStamp(long time)
Set the time stamp. |
void |
setType(int type)
Set the status type. |
void |
writeExternal(java.io.ObjectOutput oo)
Write a status object to a stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN_STATUS_TYPE
public static final int UNKNOWN_STATUS_TYPE
- Some supported status ids.
UNKNOWN_FAILURE
public static final int UNKNOWN_FAILURE
READ_ACKNOWLEDGEMENT_FAILURE
public static final int READ_ACKNOWLEDGEMENT_FAILURE
DELIVERY_TO_DEVICE_FAILURE
public static final int DELIVERY_TO_DEVICE_FAILURE
DELIVERY_TO_SERVER_FAILURE
public static final int DELIVERY_TO_SERVER_FAILURE
INTERMEDIATE_NOTIFICATION
public static final int INTERMEDIATE_NOTIFICATION
DELIVERY_TO_SERVER_SUCCESS
public static final int DELIVERY_TO_SERVER_SUCCESS
DELIVERY_TO_DEVICE_SUCCESS
public static final int DELIVERY_TO_DEVICE_SUCCESS
READ_ACKNOWLEDGEMENT_SUCCESS
public static final int READ_ACKNOWLEDGEMENT_SUCCESS
USER_REPLY_ACKNOWLEDGEMENT
public static final int USER_REPLY_ACKNOWLEDGEMENT
Status
public Status()
- Constructor.
getContent
public java.lang.String getContent()
- Get the status content.
- Returns:
- the status content.
getType
public int getType()
- Get the status type.
- Returns:
- the status type.
getTimeStamp
public long getTimeStamp()
- Get the time stamp.
- Returns:
- the time stamp.
setContent
public void setContent(java.lang.String content)
- Set the status content.
- Parameters:
content
- the status content.
setType
public void setType(int type)
- Set the status type.
- Parameters:
type
- the status type.
setTimeStamp
public void setTimeStamp(long time)
- Set the time stamp.
- Parameters:
time
- the time stamp.
readExternal
public void readExternal(java.io.ObjectInput oi)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read a status object from a stream.
- Specified by:
readExternal
in interface java.io.Externalizable
- Parameters:
oi
- the stream to read from.
writeExternal
public void writeExternal(java.io.ObjectOutput oo)
throws java.io.IOException
- Write a status object to a stream.
- Specified by:
writeExternal
in interface java.io.Externalizable
- Parameters:
oo
- the stream to write to.