public abstract class SendHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DiscoveryAgent |
agent
The agent.
|
protected java.lang.String |
sendid
The current send id.
|
protected java.util.Timer |
timer
The timer.
|
Constructor and Description |
---|
SendHandler(DiscoveryAgent agent)
Create a new lease time handling object.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<jadex.bridge.service.types.awareness.AwarenessInfo> |
createAwarenessInfo()
Create the awareness info.
|
java.lang.String |
getSendId()
Get the sendid.
|
abstract void |
send(jadex.bridge.service.types.awareness.AwarenessInfo info)
Method to send messages.
|
void |
setSendId(java.lang.String sendid)
Set the sendid.
|
void |
startSendBehavior()
Start sending awareness infos.
|
protected DiscoveryAgent agent
protected java.util.Timer timer
protected java.lang.String sendid
public SendHandler(DiscoveryAgent agent)
public void startSendBehavior()
public java.lang.String getSendId()
public void setSendId(java.lang.String sendid)
sendid
- The sendid to set.public jadex.commons.future.IFuture<jadex.bridge.service.types.awareness.AwarenessInfo> createAwarenessInfo()
public abstract void send(jadex.bridge.service.types.awareness.AwarenessInfo info)