public abstract class NetarkivetMessage extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
NetarkivetMessage(ChannelID to,
ChannelID replyTo)
Creates a new NetarkivetMessage.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrMsg()
Retrieve error message.
|
String |
getID()
Retrieve message id.
|
String |
getReplyOfId()
Retrieve replyOfId.
|
ChannelID |
getReplyTo()
Retrieve specified reply channel.
|
ChannelID |
getTo()
Retrieve initial destination.
|
boolean |
hasBeenSent()
Check, if a given message has been sent yet.
|
boolean |
isOk()
Did an error occur when processing the message.
|
void |
setNotOk(String err)
Set or append error message.
|
void |
setNotOk(Throwable e)
Set error message based on an exception.
|
String |
toString()
Returns a string containing:
|
protected NetarkivetMessage(ChannelID to, ChannelID replyTo)
to
- the initial receiver of the messagereplyTo
- the initial sender of the messageArgumentNotValid
- if to==replyTo, the replyTo parameter is a topic instead of a queue, or there is a null
parameter.public boolean isOk()
public void setNotOk(String err)
err
- error messagepublic void setNotOk(Throwable e)
e
- An exception thrown during processing.public String getErrMsg() throws PermissionDenied
PermissionDenied
- if the message is not an error messagepublic String getID()
PermissionDenied
- If the message has not yet been sent.public String getReplyOfId()
public ChannelID getReplyTo()
public boolean hasBeenSent()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.