|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.qos.address.AddressBase org.xmlBlaster.util.qos.address.CallbackAddress
public class CallbackAddress
Helper class holding callback address string and protocol string.
<callback type='XMLRPC' sessionId='4e56890ghdFzj0' pingInterval='60000' retries='5' delay='10000' oneway='false' useForSubjectQueue='true' dispatchPlugin='Priority,1.0'> http://server:8080/cb <compress type='gzip' minSize='1000'/> <burstMode collectTime='400'/> </callback>
Field Summary |
---|
Constructor Summary | |
---|---|
CallbackAddress(Global glob)
|
|
CallbackAddress(Global glob,
java.lang.String type)
|
|
CallbackAddress(Global glob,
java.lang.String type,
java.lang.String nodeId)
|
Method Summary | |
---|---|
long |
getDefaultDelay()
Delay between connection retries in milliseconds: defaults to one minute |
long |
getDefaultPingInterval()
Ping interval: pinging every given milliseconds, defaults to one minute |
int |
getDefaultRetries()
How often to retry if connection fails: defaults to 0 retries, on failure we give up |
protected void |
initialize()
Configure property settings |
static void |
main(java.lang.String[] argsDefault)
For testing: java org.xmlBlaster.util.qos.address.CallbackAddress |
void |
setFromPersistenceRecovery(boolean fromPersistenceRecovery)
|
void |
setSecretCbSessionId(java.lang.String cbSessionId)
The identifier sent to the callback client, the client can decide if he trusts this invocation |
java.lang.String |
toString()
|
java.lang.String |
usage()
Client side usage used by XmlBlasterAccess |
boolean |
useForSubjectQueue()
Shall this address be used for subject queue messages? |
void |
useForSubjectQueue(boolean useForSubjectQueue)
Shall this address be used for subject queue messages? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CallbackAddress(Global glob)
public CallbackAddress(Global glob, java.lang.String type)
type
- The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"public CallbackAddress(Global glob, java.lang.String type, java.lang.String nodeId)
type
- The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"nodeId
- A unique string (typically the cluster node id we connect to).nodeId="heron" code>
the command line argument (or xmlBlaster.property entry)
-/node/heron/dispatch/callback/retries 20
is precedence over
-dispatch/callback/retries 10
Method Detail |
---|
public int getDefaultRetries()
getDefaultRetries
in class AddressBase
public long getDefaultDelay()
getDefaultDelay
in class AddressBase
public long getDefaultPingInterval()
getDefaultPingInterval
in class AddressBase
protected void initialize()
initialize
in class AddressBase
public boolean useForSubjectQueue()
public void useForSubjectQueue(boolean useForSubjectQueue)
useForSubjectQueue
- false if address is for session queue onlypublic void setSecretCbSessionId(java.lang.String cbSessionId)
AddressBase.setSecretSessionId(String)
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String usage()
usage
in class AddressBase
public static void main(java.lang.String[] argsDefault)
public void setFromPersistenceRecovery(boolean fromPersistenceRecovery)
setFromPersistenceRecovery
in class AddressBase
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |