Package org.astrogrid.samp.client
Class LogResultHandler
- java.lang.Object
-
- org.astrogrid.samp.client.LogResultHandler
-
- All Implemented Interfaces:
ResultHandler
public class LogResultHandler extends java.lang.Object implements ResultHandler
ResultHandler implementation which outputs some information about responses received through the logging system.- Since:
- 12 Nov 2008
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description LogResultHandler(Message msg)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
done()
Called when no moreResultHandler.result(org.astrogrid.samp.Client, org.astrogrid.samp.Response)
invocations will be made, either because all have been received or for some other reason, such as a timeout or the hub shutting down.void
result(Client client, Response response)
Called when a response is received from a client to which the message was sent.
-
-
-
Constructor Detail
-
LogResultHandler
public LogResultHandler(Message msg)
Constructor.- Parameters:
msg
- message which was sent
-
-
Method Detail
-
result
public void result(Client client, Response response)
Description copied from interface:ResultHandler
Called when a response is received from a client to which the message was sent.- Specified by:
result
in interfaceResultHandler
- Parameters:
client
- responder clientresponse
- content of response
-
done
public void done()
Description copied from interface:ResultHandler
Called when no moreResultHandler.result(org.astrogrid.samp.Client, org.astrogrid.samp.Response)
invocations will be made, either because all have been received or for some other reason, such as a timeout or the hub shutting down.- Specified by:
done
in interfaceResultHandler
-
-