public class PublishInterestsTask extends Activity
Constructor and Description |
---|
PublishInterestsTask(HyperGraphPeer thisPeer,
HGAtomPredicate pred)
Constructor called by current peer to publish his interests
|
PublishInterestsTask(HyperGraphPeer thisPeer,
java.util.UUID id)
Constructor called by peer interface -someone is requesting us to publish our interests
|
Modifier and Type | Method and Description |
---|---|
void |
handleMessage(Json msg)
Handle an incoming that was identified as belonging to this activity.
|
void |
initiate()
Called by the framework to initiate a new activity.
|
public PublishInterestsTask(HyperGraphPeer thisPeer, HGAtomPredicate pred)
peerInterface
- pred
- public PublishInterestsTask(HyperGraphPeer thisPeer, java.util.UUID id)
peerInterface
- peer
- msg
- public void initiate()
Activity
Called by the framework to initiate a new activity. This method is only invoked
at the peer initiating the activity. Once an activity has been initiated, its state
changes to Started
.
public void handleMessage(Json msg)
Activity
Handle an incoming that was identified as belonging to this activity.
handleMessage
in class Activity
msg
- The full message.