Interface RequestEvent


public interface RequestEvent

Event that is raised when a peer requests a subject. You do not need to implement RequestEvent; instances of RequestEvent are supplied through the DataProvider.onRequest(RequestEvent) method of DataProvider.

 

Your implementation must handle the receipt of RequestEvents through its DataProvider.onRequest(RequestEvent) method; see the description of DataProvider.onRequest(RequestEvent) for details.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the Peer that is requesting the subject.
    Gets the subject that is being requested.
  • Method Details

    • getSubject

      String getSubject()
      Gets the subject that is being requested.
      Returns:
      The subject.
    • getPeer

      Peer getPeer()
      Gets the Peer that is requesting the subject.
      Returns:
      The peer.