oracle.panama.messaging.push
Class DeliveryChannel
java.lang.Object
oracle.panama.messaging.push.DeliveryChannel
- All Implemented Interfaces:
- java.io.Serializable
- public class DeliveryChannel
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
DeliveryChannel()
|
DeliveryChannel(java.lang.String transport)
construct a delivery channel object which has only transport type. |
DeliveryChannel(java.lang.String transportType, int timeout, int successStatusCode)
construct a delivery channel object which has a transport type, a time out parameter and a success status code. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DeliveryChannel
public DeliveryChannel()
DeliveryChannel
public DeliveryChannel(java.lang.String transport)
- construct a delivery channel object which has only transport type.
DeliveryChannel
public DeliveryChannel(java.lang.String transportType,
int timeout,
int successStatusCode)
- construct a delivery channel object which has a transport type, a time out parameter and a success status code. PushServer will monitor the delivery channel after sending out a message to the delivery channel and notify Push client if the expected status code is not received before timeout.
- Parameters:
transportType
- Transport type name defined in oracle.panama.messaging.common.TransportType class
timeout
- Timeout parameter is in second. It must be larger than 0.
successStatusCode
- Expected status code. Status code must be defined in oracle.panama.messaging.push.Status.
equals
public boolean equals(java.lang.Object other)
getSuccessStatusCode
public int getSuccessStatusCode()
getTimeout
public int getTimeout()
getTransportType
public java.lang.String getTransportType()
hashCode
public int hashCode()
setSuccessStatusCode
public void setSuccessStatusCode(int successStatusCode)
- set expected status code of this delivery channel
-
- Parameters:
successStatusCode
- Expected status code. Status code must be defined in oracle.panama.messaging.push.Status.
setTimeout
public void setTimeout(int timeout)
- set timeout parameter of this delivery channel
-
- Parameters:
timeout
- Timeout parameter is in second. It must be larger than 0.
setTransportType
public void setTransportType(java.lang.String transportType)
- set the transport type of this delivery channel.
-
- Parameters:
transportType
- Transport type name defined in oracle.panama.messaging.common.TransportType class
toString
public java.lang.String toString()
Copyright © 2004 Oracle Corporation. All Rights Reserved.