Package org.activecomponents.webservice
Class WebsocketsTestAgent
- java.lang.Object
-
- org.activecomponents.webservice.WebsocketsTestAgent
-
- All Implemented Interfaces:
IWebsocketTestService
public class WebsocketsTestAgent extends java.lang.Object implements IWebsocketTestService
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
-
Constructor Summary
Constructors Constructor Description WebsocketsTestAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Double>
add(double a, double b)
Add two numbers.IFuture<java.lang.Integer>
add(int a, int b)
Add two numbers.ISubscriptionIntermediateFuture<java.lang.Integer>
count(int max, long delay)
Method with intermediate results.IFuture<java.lang.Void>
produceException()
Produce some exception.IPullIntermediateFuture<java.lang.String>
pull(int max)
Method with pullable results.IFuture<java.lang.String>
sayHelloTo(java.lang.String name)
Say hello to somebody.IFuture<java.lang.String>
sayHelloTo(java.lang.String name, java.lang.String name2)
Say hello to somebody.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
-
-
Method Detail
-
sayHelloTo
public IFuture<java.lang.String> sayHelloTo(java.lang.String name)
Say hello to somebody.- Specified by:
sayHelloTo
in interfaceIWebsocketTestService
-
sayHelloTo
public IFuture<java.lang.String> sayHelloTo(java.lang.String name, java.lang.String name2)
Say hello to somebody.- Specified by:
sayHelloTo
in interfaceIWebsocketTestService
-
produceException
public IFuture<java.lang.Void> produceException()
Produce some exception.- Specified by:
produceException
in interfaceIWebsocketTestService
-
add
public IFuture<java.lang.Integer> add(int a, int b)
Add two numbers.- Specified by:
add
in interfaceIWebsocketTestService
-
add
public IFuture<java.lang.Double> add(double a, double b)
Add two numbers.- Specified by:
add
in interfaceIWebsocketTestService
-
count
public ISubscriptionIntermediateFuture<java.lang.Integer> count(int max, long delay)
Method with intermediate results.- Specified by:
count
in interfaceIWebsocketTestService
-
pull
public IPullIntermediateFuture<java.lang.String> pull(int max)
Method with pullable results.- Specified by:
pull
in interfaceIWebsocketTestService
-
-