diff options
Diffstat (limited to 'examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java')
-rw-r--r-- | examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java index ba873c832..bebd22647 100644 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java +++ b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java @@ -19,35 +19,35 @@ import org.eclipse.tm.tcf.protocol.IToken; */ public interface IDaytimeService extends IService { - /** - * This service name, as it appears on the wire - a TCF name of the service. - */ - public static final String NAME = "Daytime"; + /** + * This service name, as it appears on the wire - a TCF name of the service. + */ + public static final String NAME = "Daytime"; - /** - * Retrieve the time of day from remote system. - * The method sends the command to remote server and returns - - * it does not wait for the server response. Instead a client should provide - * a call-back object that will be called when the server answers the command - * or when the command is aborted by communication error. - * @param tz - time zone name. - * @param done - a call-back object. - * @return a handle for the pending command. The handle can be used to cancel the command, - * and to match responses to requests - if same call-back object is used for - * multiple requests. - */ - IToken getTimeOfDay(String tz, DoneGetTimeOfDay done); + /** + * Retrieve the time of day from remote system. + * The method sends the command to remote server and returns - + * it does not wait for the server response. Instead a client should provide + * a call-back object that will be called when the server answers the command + * or when the command is aborted by communication error. + * @param tz - time zone name. + * @param done - a call-back object. + * @return a handle for the pending command. The handle can be used to cancel the command, + * and to match responses to requests - if same call-back object is used for + * multiple requests. + */ + IToken getTimeOfDay(String tz, DoneGetTimeOfDay done); + /** + * Call-back interface for getTimeOfDay() command. + */ + interface DoneGetTimeOfDay { /** - * Call-back interface for getTimeOfDay() command. + * This method is called when getTimeOfDay() command is completed. + * @param token - pending command handle. + * @param error - null if the command is successful. + * @param str - a String of the form "01 MAR 2006 11:25:12 CET" */ - interface DoneGetTimeOfDay { - /** - * This method is called when getTimeOfDay() command is completed. - * @param token - pending command handle. - * @param error - null if the command is successful. - * @param str - a String of the form "01 MAR 2006 11:25:12 CET" - */ - void doneGetTimeOfDay(IToken token, Exception error, String str); - } + void doneGetTimeOfDay(IToken token, Exception error, String str); + } } |