Package com.isode.som.qmgr.objects
Class SomQmgrRecipient
java.lang.Object
com.isode.som.qmgr.objects.SomQmgrObject
com.isode.som.qmgr.objects.SomQmgrRecipient
Class which models a recipient object within the Queue
- Author:
- tc
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.isode.som.qmgr.objects.SomQmgrObject
errortext, somSession
-
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrRecipient
(SomSession session, String c, String m, SomQmgrMessage msg) Create a new recipient objectSomQmgrRecipient
(SomSession session, String c, String m, SomQmgrMessage msg, String[] pairs) Create a new recipient object, populating it from the attribute pairs passed in -
Method Summary
Modifier and TypeMethodDescriptionGenerate information string about this recipientGet the time which this message is delayed untilchannel()
Get current channel namechannels()
Get the list of channels which this recipient address is scheduled onGet a list of channels which have already processed this recipient addressvoid
clear
(SomCommandListener listener) Clear delay on this recipientGet content id for recipientvoid
delay
(int mins, SomCommandListener listener) Delay this recipientvoid
delete
(SomCommandListener listener) Delete this recipientenabled()
Get a string indicating whether this recipient is enabled or notgetCV()
getMsg()
group()
Get internal group nameinfo()
Get information string for recipientGet time of last processing attemptGet time of last successful processing attemptmsgState()
Get state of this recipientGet state codeGet recipient statusGet recipient status string as x.y.zmta()
Get MTA name for this recipientvoid
nondeliver
(String reason, SomCommandListener listener) Nondeliver this recipientGet size of outbound message for this recipientGet number of bytes that receiving MTA has acknowledgedGet recipient numbervoid
redirect
(String addr, SomCommandListener listener) Redirect this recipient to a new addressGet number of retransmissions that have been necessaryvoid
timeout
(SomCommandListener listener) Time out this recipientGet number of bytes transmitteduser()
Get actual addressMethods inherited from class com.isode.som.qmgr.objects.SomQmgrObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getDoubleAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, parsePairs, print, print_str, removeBindListener, setSkipNotifications
-
Constructor Details
-
SomQmgrRecipient
Create a new recipient object- Parameters:
session
- session for this recipient which must not be nullc
- channel for this recipient which must not be nullm
- mta for this recipient which may be nullmsg
- message for this recipient which may not be null
-
SomQmgrRecipient
Create a new recipient object, populating it from the attribute pairs passed in- Parameters:
session
- session for this recipient which must not be nullc
- channel for this recipient which must not be nullm
- mta for this recipient which may be nullmsg
- message for this recipient which may not be nullpairs
- attribute pairs
-
-
Method Details
-
cachedUntil
Get the time which this message is delayed until- Returns:
- delay time (UTC Time string)
- Throws:
SomException
- on error
-
channels
Get the list of channels which this recipient address is scheduled on- Returns:
- string containing list of channels
- Throws:
SomException
- on error
-
channelsDone
Get a list of channels which have already processed this recipient address- Returns:
- list of channels
- Throws:
SomException
- on error
-
enabled
Get a string indicating whether this recipient is enabled or not- Returns:
- "True" if recipient enabled, "False" otherwise
- Throws:
SomException
- on error
-
info
Get information string for recipient- Returns:
- information string
- Throws:
SomException
- on error
-
lastAttempt
Get time of last processing attempt- Returns:
- time of last attempt (UTC time string)
- Throws:
SomException
- on error
-
lastSuccess
Get time of last successful processing attempt- Returns:
- time of last successful attempt (UTC time string)
- Throws:
SomException
- on error
-
msgStatus
Get recipient status- Returns:
- recipient status
- Throws:
SomException
- on error
-
mta
Get MTA name for this recipient- Returns:
- mta name
- Throws:
SomException
- on error
-
user
Get actual address- Returns:
- recipient address (string encoding)
- Throws:
SomException
- on error
-
recipient
Get recipient number- Returns:
- recipient number
- Throws:
SomException
- on error
-
channel
Get current channel name- Returns:
- channel name
- Throws:
SomException
- on error
-
contentId
Get content id for recipient- Returns:
- content-id
- Throws:
SomException
- on error
-
group
Get internal group name- Returns:
- group name
- Throws:
SomException
- on error
-
msgState
Get state of this recipient- Returns:
- state string
- Throws:
SomException
- on error
-
msgStateCode
Get state code- Returns:
- state code
- Throws:
SomException
- on error
-
msgStatusCode
Get recipient status string as x.y.z- Returns:
- status string
- Throws:
SomException
- on error
-
outboundSize
Get size of outbound message for this recipient- Returns:
- size of outbound message
- Throws:
SomException
- on error
-
receivedBytes
Get number of bytes that receiving MTA has acknowledged- Returns:
- number of bytes received
- Throws:
SomException
- on error
-
retransmissions
Get number of retransmissions that have been necessary- Returns:
- number of retransmissions
- Throws:
SomException
- on error
-
transmittedBytes
Get number of bytes transmitted- Returns:
- number of bytes transmitted
- Throws:
SomException
- on error
-
buildInfoString
Generate information string about this recipient- Returns:
- info string
-
clear
Clear delay on this recipient- Parameters:
listener
- Object to notify when operation complete, which may be null- Throws:
SomException
- on error
-
delay
Delay this recipient- Parameters:
mins
- minutes to delay recipient bylistener
- Object to notify when operation complete, which may be null- Throws:
SomException
- on error
-
timeout
Time out this recipient- Parameters:
listener
- Object to notify when operation complete, which may be null- Throws:
SomException
- on error
-
delete
Delete this recipient- Parameters:
listener
- Object to notify when operation complete, which may be null- Throws:
SomException
- on error
-
redirect
Redirect this recipient to a new address- Parameters:
addr
- new recipient addresslistener
- Object to notify when operation complete, which may be null- Throws:
SomException
- on error
-
nondeliver
Nondeliver this recipient- Parameters:
reason
- reason text which must not be nulllistener
- Object to notify when operation complete, which may be null- Throws:
SomException
- on error
-
getMsg
- Returns:
- The SomQmgrMessage for this recipient;
-
getCV
- Throws:
SomException
-