|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.internal.node.service.DefaultServiceClient<T,S>
public class DefaultServiceClient<T,S>
Method Summary | ||
---|---|---|
void |
call(T request,
ServiceResponseListener<S> listener)
Calls a method on the ServiceServer . |
|
void |
connect(java.net.URI uri)
Connects to a ServiceServer . |
|
GraphName |
getName()
|
|
static
|
newDefault(GraphName nodeName,
ServiceDeclaration serviceDeclaration,
MessageSerializer<S> serializer,
MessageDeserializer<T> deserializer,
MessageFactory messageFactory,
java.util.concurrent.ScheduledExecutorService executorService)
|
|
T |
newMessage()
|
|
void |
shutdown()
Stops the client (e.g. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <S,T> DefaultServiceClient<S,T> newDefault(GraphName nodeName, ServiceDeclaration serviceDeclaration, MessageSerializer<S> serializer, MessageDeserializer<T> deserializer, MessageFactory messageFactory, java.util.concurrent.ScheduledExecutorService executorService)
public void connect(java.net.URI uri)
ServiceClient
ServiceServer
.
connect
in interface ServiceClient<T,S>
uri
- the URI
of the ServiceServer
to connect topublic void shutdown()
ServiceClient
shutdown
in interface ServiceClient<T,S>
public void call(T request, ServiceResponseListener<S> listener)
ServiceClient
ServiceServer
.
call
in interface ServiceClient<T,S>
request
- the request messagelistener
- the ServiceResponseListener
that will handle the response
to this requestpublic GraphName getName()
getName
in interface ServiceClient<T,S>
ServiceClient
is connected topublic java.lang.String toString()
toString
in class java.lang.Object
public T newMessage()
newMessage
in interface ServiceClient<T,S>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |