Package eu.bandm.tools.message
Class SimpleMessage.Sender<E>
java.lang.Object
eu.bandm.tools.message.SingleSender<SimpleMessage<E>>
eu.bandm.tools.message.SimpleMessage.Sender<E>
- Type Parameters:
E
- the type of the document identifier of the message locations
- Enclosing class:
SimpleMessage<D>
A convenience class which allows to create and send a message
with one single method invocation.
As with every SingleSender, the receiver must be set to a non-null value before the first message is received. Otherwise the code will crash intentionally.
-
Field Summary
Fields inherited from class eu.bandm.tools.message.SingleSender
drain
-
Constructor Summary
ConstructorsConstructorDescriptionSender()
A constructor which requires subsequent setting of the receiver.Sender
(@Opt MessageReceiver<SimpleMessage<E>> msgr) A constructor which sets the receiver of the messages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Send an error message with the given attributes, and set all others to default.void
Send an error message with the given attributes, and set all others to default.void
Send an error message with the given attributes, and set all others to default.void
Send an error message with the given attributes, and set all others to default.void
Send a failure message with the given attributes, and set all others to default.void
Send a failure message with the given attributes, and set all others to default.void
Send a failure message with the given attributes, and set all others to default.void
Send a failure message with the given attributes, and set all others to default.void
Send a hint message with the given attributes, and set all others to default.void
Send a hint message with the given attributes, and set all others to default.void
Send a hint message with the given attributes, and set all others to default.void
Send a hint message with the given attributes, and set all others to default.void
Send a log message with the given attributes, and set all others to default.void
Send a log message with the given attributes, and set all others to default.void
Send a log message with the given attributes, and set all others to default.void
Send a log message with the given attributes, and set all others to default.void
Send a log end message with the given attributes, and set all others to default.void
Send a log end message with the given attributes, and set all others to default.void
Send a log end message with the given attributes, and set all others to default.void
Send a log end message with the given attributes, and set all others to default.void
Send a log start message with the given attributes, and set all others to default.void
Send a log start message with the given attributes, and set all others to default.void
Send a log start message with the given attributes, and set all others to default.void
Send a log start message with the given attributes, and set all others to default.void
Send a warning message with the given attributes, and set all others to default.void
Send a warning message with the given attributes, and set all others to default.void
Send a warning message with the given attributes, and set all others to default.void
Send a warning with the given attributes, and set all others to default.Methods inherited from class eu.bandm.tools.message.SingleSender
getDrain, getReceiver, send, setDrain, setReceiver
-
Constructor Details
-
Sender
A constructor which sets the receiver of the messages.- Parameters:
msgr
- the receiver of the messages.
-
Sender
public Sender()A constructor which requires subsequent setting of the receiver.
-
-
Method Details
-
log
Send a log message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
log
Send a log message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
log
Send a log message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
log
Send a log message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-
logStart
Send a log start message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
logStart
Send a log start message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
logStart
Send a log start message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
logStart
Send a log start message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-
logEnd
Send a log end message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
logEnd
Send a log end message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
logEnd
Send a log end message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
logEnd
Send a log end message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-
error
Send an error message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
error
Send an error message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
error
Send an error message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
error
Send an error message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-
warning
Send a warning message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
warning
Send a warning message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
warning
Send a warning with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
warning
Send a warning message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-
failure
Send a failure message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
failure
Send a failure message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
failure
Send a failure message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
failure
Send a failure message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-
hint
Send a hint message with the given attributes, and set all others to default.- Parameters:
message
- the message textargs
- the message arguments
-
hint
Send a hint message with the given attributes, and set all others to default.- Parameters:
loc
- the location of the messagemessage
- the message textargs
- the message arguments
-
hint
Send a hint message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messagemessage
- the message textargs
- the message arguments
-
hint
Send a hint message with the given attributes, and set all others to default.- Parameters:
ex
- the cause of the messageloc
- the location of the messagemessage
- the message textargs
- the message arguments
-