Public Member Functions | |
String | getName () |
SubscriberHandshakeHandler (ConnectionHeader outgoingConnectionHeader, final IncomingMessageQueue< T > incomingMessageQueue, ExecutorService executorService) | |
Protected Member Functions | |
void | onFailure (String errorMessage, ChannelHandlerContext ctx, MessageEvent e) |
void | onSuccess (ConnectionHeader incomingConnectionHeader, ChannelHandlerContext ctx, MessageEvent e) |
Private Attributes | |
final IncomingMessageQueue< T > | incomingMessageQueue |
Static Private Attributes | |
static final Log | log = LogFactory.getLog(SubscriberHandshakeHandler.class) |
Performs a handshake with the connected Publisher and connects the Publisher to the IncomingMessageQueue on success.
<T> | the Subscriber may only subscribe to messages of this type |
Definition at line 43 of file SubscriberHandshakeHandler.java.
org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.SubscriberHandshakeHandler | ( | ConnectionHeader | outgoingConnectionHeader, |
final IncomingMessageQueue< T > | incomingMessageQueue, | ||
ExecutorService | executorService | ||
) | [inline] |
Definition at line 49 of file SubscriberHandshakeHandler.java.
String org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.getName | ( | ) | [inline] |
Implements org.ros.internal.transport.tcp.NamedChannelHandler.
Definition at line 75 of file SubscriberHandshakeHandler.java.
void org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.onFailure | ( | String | errorMessage, |
ChannelHandlerContext | ctx, | ||
MessageEvent | e | ||
) | [inline, protected, virtual] |
Implements org.ros.internal.transport.BaseClientHandshakeHandler.
Definition at line 69 of file SubscriberHandshakeHandler.java.
void org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.onSuccess | ( | ConnectionHeader | incommingConnectionHeader, |
ChannelHandlerContext | ctx, | ||
MessageEvent | e | ||
) | [inline, protected, virtual] |
Called when the ClientHandshake succeeds and will block the network thread until it returns.
This must block in order to allow changes to the pipeline to be made before further messages arrive.
incommingConnectionHeader | |
ctx | |
e |
Implements org.ros.internal.transport.BaseClientHandshakeHandler.
Definition at line 56 of file SubscriberHandshakeHandler.java.
final IncomingMessageQueue<T> org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.incomingMessageQueue [private] |
Definition at line 47 of file SubscriberHandshakeHandler.java.
final Log org.ros.internal.node.topic.SubscriberHandshakeHandler< T >.log = LogFactory.getLog(SubscriberHandshakeHandler.class) [static, private] |
Definition at line 45 of file SubscriberHandshakeHandler.java.