|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wli.sb.transports.TransportOptions
public class TransportOptions
Used to supply options for sending or receiving a message. Possibly other usages in the future. There are two styles for using TransportOptions: multiline setup, and single-line use. Here are two examples. First, multiline style:
TransportOptions opts = new TransportOptions(); opts.setQoS(EXACTLY_ONCE); opts.setThrowOnError(true);The alternative is single-line usage:
new TransportOptions().setQoS(EXACTLY_ONCE).setThrowOnError()));
Nested Class Summary | |
---|---|
static class |
TransportOptions.ModeEnum
|
static class |
TransportOptions.QoSEnum
|
Field Summary | |
---|---|
static String |
_URI
|
static String |
BLOCKING_THROTTLING
|
static int |
DEFAULT_PRIORITY
|
static String |
INBOUND_ENDPOINT
|
static String |
MESSAGE_PRIORITY
|
static String |
MODE
|
static String |
OPAQUE_DATA
|
static String |
OPERATION_NAME
|
static String |
QOS
|
static String |
RETRY_COUNT
|
static String |
RETRY_INTERVAL
|
static String |
THROW_ON_ERROR
|
Constructor Summary | |
---|---|
TransportOptions()
|
Method Summary | |
---|---|
Object |
get(Object option)
|
int |
getMessagePriority()
|
TransportOptions.ModeEnum |
getMode()
|
Map<String,Object> |
getOpaqueData()
|
String |
getOperationName()
|
TransportOptions.QoSEnum |
getQoS()
|
int |
getRetryCount()
|
int |
getRetryInterval()
|
URI |
getURI()
|
boolean |
hasOption(Object option)
|
static boolean |
hasOption(TransportOptions options,
Object option)
utility method |
boolean |
isBlockingThrottling()
|
boolean |
isThrowOnError()
|
TransportOptions |
put(Object option)
|
TransportOptions |
put(Object option,
int value)
set the value of the option with a given key to specified value |
TransportOptions |
put(Object option,
Object value)
set the value of the option with a given key to specified value |
void |
remove(Object option)
delete of the option with a given key |
static Object |
safeGet(TransportOptions options,
Object option)
utility method |
TransportOptions |
setBlockingThrottling()
|
TransportOptions |
setMessagePriority(int priority)
|
TransportOptions |
setMode(TransportOptions.ModeEnum val)
specifies the type of the message being processed by ALSB - one-way or request/response. |
TransportOptions |
setOpaqueData(Map<String,Object> data)
Stores opaque (i.e. |
TransportOptions |
setOperationName(String val)
specifies the name of the Web Service operation, when applicable for outbound requests. |
TransportOptions |
setQoS(TransportOptions.QoSEnum val)
specifies whether or not “exactly-once” qualify of service can be achieved. |
TransportOptions |
setRetryCount(int val)
specifies the retry count is to used in case of delivery failure when sending outbound requests via a transport provider. |
TransportOptions |
setRetryInterval(int val)
specifies the retry interval is to used in case of delivery failure when sending outbound requests via a transport provider. |
TransportOptions |
setThrowOnError()
if set, an exception will be thrown to the callee of method TransportManager.receiveMessage() due to an error that occurs during the ALSB pipeline processing. |
TransportOptions |
setURI(URI val)
specifies which URI is to be used when sending outbound requests via a transport provider |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QOS
public static final String THROW_ON_ERROR
public static final String MODE
public static final String _URI
public static final String RETRY_INTERVAL
public static final String RETRY_COUNT
public static final String OPERATION_NAME
public static final String INBOUND_ENDPOINT
public static final String OPAQUE_DATA
public static final String MESSAGE_PRIORITY
public static final String BLOCKING_THROTTLING
public static final int DEFAULT_PRIORITY
Constructor Detail |
---|
public TransportOptions()
Method Detail |
---|
public TransportOptions setQoS(TransportOptions.QoSEnum val)
val
- quality of service enum
public TransportOptions.QoSEnum getQoS()
public TransportOptions setMode(TransportOptions.ModeEnum val)
val
- mode
public TransportOptions.ModeEnum getMode()
public TransportOptions setThrowOnError()
public boolean isThrowOnError()
public TransportOptions setBlockingThrottling()
public boolean isBlockingThrottling()
public TransportOptions setURI(URI val)
val
- uri
public URI getURI()
public TransportOptions setRetryInterval(int val)
val
- retry interval
public int getRetryInterval()
public TransportOptions setRetryCount(int val)
val
- retry count
public int getRetryCount()
public TransportOptions setOperationName(String val)
val
- operation name
public String getOperationName()
public TransportOptions setMessagePriority(int priority)
public int getMessagePriority()
public TransportOptions setOpaqueData(Map<String,Object> data)
data
- opaque data, a map of object keyed by string.
public Map<String,Object> getOpaqueData()
public boolean hasOption(Object option)
option
- option key
public Object get(Object option)
option
- option key
public TransportOptions put(Object option)
option
- option key
public TransportOptions put(Object option, int value)
option
- object representing the option keyvalue
- int value for the given key
public TransportOptions put(Object option, Object value)
option
- object representing the option keyvalue
- object value for the given key
public void remove(Object option)
option
- keypublic static Object safeGet(TransportOptions options, Object option)
option
- keyoptions
- transport options to introspect
public static boolean hasOption(TransportOptions options, Object option)
option
- keyoptions
- transport options to introspect
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |