public class BlaubotMessageManager
extends java.lang.Object
Constructor and Description |
---|
BlaubotMessageManager(BlaubotMessageSender messageSender,
BlaubotMessageReceiver messageReceiver)
Constructs a BlaubotMessageManager based on a pre-created receiver and sender object.
|
BlaubotMessageManager(IBlaubotConnection blaubotConnection)
Constructs the MessageManager based on a IBlaubotConnection.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates the sender and receiver
|
void |
deactivate(IActionListener actionListener)
Deactivates sender and receiver
|
boolean |
equals(java.lang.Object o) |
BlaubotMessageReceiver |
getMessageReceiver() |
BlaubotMessageSender |
getMessageSender() |
int |
hashCode() |
java.lang.String |
toString() |
public BlaubotMessageManager(BlaubotMessageSender messageSender, BlaubotMessageReceiver messageReceiver)
messageSender
- the message sendermessageReceiver
- the message receiverpublic BlaubotMessageManager(IBlaubotConnection blaubotConnection)
blaubotConnection
- the connection to be managedpublic void activate()
public void deactivate(IActionListener actionListener)
actionListener
- a listener that is called when the receiver and sender are deactivated. may be nullpublic BlaubotMessageReceiver getMessageReceiver()
public BlaubotMessageSender getMessageSender()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object