net.jxta.search.router
Interface Router.Callback
- Enclosing class:
- Router
- public static interface Router.Callback
Method Summary |
void |
flush()
Called according to the heuristics calculated using the parameters
passed to Router.fetch() |
void |
process(ProviderResponse response)
Process the response (probably writing it out to the original
requestor, pre-declaring the length of the response, maybe. |
void |
setProviderNumbers(int totalProviders,
int queriedProviders)
This is where your transport code can pre-declare number of
responses or whatever. |
setProviderNumbers
public void setProviderNumbers(int totalProviders,
int queriedProviders)
throws java.io.IOException
- This is where your transport code can pre-declare number of
responses or whatever.
process
public void process(ProviderResponse response)
throws java.io.IOException
- Process the response (probably writing it out to the original
requestor, pre-declaring the length of the response, maybe.
flush
public void flush()
throws java.io.IOException
- Called according to the heuristics calculated using the parameters
passed to Router.fetch()