|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 |
INBOUND_ENDPOINT
|
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)
|
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 |
isThrowOnError()
|
TransportOptions |
put(Object option)
set the value of the option with a given key |
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 |
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
Constructor Detail |
---|
public TransportOptions()
Method Detail |
---|
public TransportOptions setQoS(TransportOptions.QoSEnum val)
public TransportOptions.QoSEnum getQoS()
public TransportOptions setMode(TransportOptions.ModeEnum val)
public TransportOptions.ModeEnum getMode()
public TransportOptions setThrowOnError()
public boolean isThrowOnError()
public TransportOptions setURI(URI val)
public URI getURI()
public TransportOptions setRetryInterval(int val)
public int getRetryInterval()
public TransportOptions setRetryCount(int val)
public int getRetryCount()
public TransportOptions setOperationName(String val)
public String getOperationName()
public TransportOptions setOpaqueData(Map<String,Object> data)
public Map<String,Object> getOpaqueData()
public boolean hasOption(Object option)
public Object get(Object option)
public TransportOptions put(Object option)
public TransportOptions put(Object option, int value)
public TransportOptions put(Object option, Object value)
public void remove(Object option)
public static Object safeGet(TransportOptions options, Object option)
public static boolean hasOption(TransportOptions options, Object option)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |